Browse code

fix wrong __CLASS__ constant

Marco Dania authored on 18/11/2016 10:13:19
Showing 1 changed files
... ...
@@ -675,7 +675,7 @@ abstract class Twig_Template implements Twig_TemplateInterface
675 675
 
676 676
         // @deprecated in 1.28
677 677
         if ($object instanceof Twig_TemplateInterface) {
678
-            @trigger_error('Using the dot notation on an instance of '.__CLASS.' is deprecated since version 1.28 and won\'t be supported anymore in 2.0.', E_USER_DEPRECATED);
678
+            @trigger_error('Using the dot notation on an instance of '.__CLASS__.' is deprecated since version 1.28 and won\'t be supported anymore in 2.0.', E_USER_DEPRECATED);
679 679
 
680 680
             return $ret === '' ? '' : new Twig_Markup($ret, $this->env->getCharset());
681 681
         }