mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-15 11:56:50 +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) {
|
if (null !== $template) {
|
||||||
// avoid RCEs when sandbox is enabled
|
// avoid RCEs when sandbox is enabled
|
||||||
if (!$template instanceof self) {
|
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 {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user