Browse code

fixed undefined variables

Fabien Potencier authored on 25/10/2016 17:31:00
Showing 1 changed files
... ...
@@ -633,7 +633,8 @@ class Twig_ExpressionParser
633 633
     private function getTestNodeClass($test)
634 634
     {
635 635
         if ($test instanceof Twig_SimpleTest && $test->isDeprecated()) {
636
-            $message = sprintf('Twig Test "%s" is deprecated', $name);
636
+            $stream = $this->parser->getStream();
637
+            $message = sprintf('Twig Test "%s" is deprecated', $test->getName());
637 638
             if (!is_bool($test->getDeprecatedVersion())) {
638 639
                 $message .= sprintf(' since version %s', $test->getDeprecatedVersion());
639 640
             }