fix php 5.2 compatibility

This commit is contained in:
Tobias Schultze
2015-08-21 16:16:21 +02:00
parent 118598eaf3
commit 7b579df77d
+1 -1
View File
@@ -156,7 +156,7 @@ abstract class Twig_Template implements Twig_TemplateInterface
if (null !== $template) {
// avoid RCEs when sandbox is enabled
if (!$template instanceof self) {
throw new \LogicException('A block must be a method on a Twig_Template instance.');
throw new LogicException('A block must be a method on a Twig_Template instance.');
}
try {