mirror of
https://github.com/twigphp/Twig.git
synced 2026-10-28 06:35:17 +00:00
Fix CS
This commit is contained in:
+1
-1
@@ -549,7 +549,7 @@ class Parser
|
||||
// here, $nested means "being at the root level of a child template"
|
||||
// we need to discard the wrapping "Node" for the "body" node
|
||||
// Node::class !== \get_class($node) should be removed in Twig 4.0
|
||||
$nested = $nested || (Node::class !== \get_class($node) && !$node instanceof Nodes);
|
||||
$nested = $nested || (Node::class !== $node::class && !$node instanceof Nodes);
|
||||
foreach ($node as $k => $n) {
|
||||
if (null !== $n && null === $this->filterBodyNodes($n, $nested)) {
|
||||
$node->removeNode($k);
|
||||
|
||||
Reference in New Issue
Block a user