mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-13 02:46:29 +00:00
fixed Parser bug
This commit is contained in:
+1
-1
@@ -310,7 +310,7 @@ class Twig_Parser implements Twig_ParserInterface
|
||||
}
|
||||
|
||||
foreach ($node as $k => $n) {
|
||||
if (null === $n = $this->filterBodyNodes($n)) {
|
||||
if ($n instanceof Twig_NodeInterface && null === $n = $this->filterBodyNodes($n)) {
|
||||
$node->removeNode($k);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user