moved some more PSR0 class names to namespaced ones

This commit is contained in:
Fabien Potencier
2019-03-06 13:45:57 +01:00
parent f16405f797
commit 4eb0c9da8e
12 changed files with 18 additions and 29 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ class ModuleNode extends Node
public function __construct(\Twig_NodeInterface $body, AbstractExpression $parent = null, \Twig_NodeInterface $blocks, \Twig_NodeInterface $macros, \Twig_NodeInterface $traits, $embeddedTemplates, $name, $source = '')
{
if (!$name instanceof Source) {
@trigger_error(sprintf('Passing a string as the $name argument of %s() is deprecated since version 1.27. Pass a \Twig_Source instance instead.', __METHOD__), E_USER_DEPRECATED);
@trigger_error(sprintf('Passing a string as the $name argument of %s() is deprecated since version 1.27. Pass a \Twig\Source instance instead.', __METHOD__), E_USER_DEPRECATED);
$this->source = new Source($source, $name);
} else {
$this->source = $name;