mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-14 11:27:00 +00:00
fix php 5.2 compatibility
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user