Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Twig/Visitor/RemovingNodeVisitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@
protected function doEnterNode(Node $node, Environment $env): Node
{
if ($this->enabled && $node instanceof FilterExpression) {
$name = $node->getNode('filter')->getAttribute('value');
$name = $node->getAttribute('twig_callable')->getName()

if ('desc' === $name || 'meaning' === $name) {

Check failure on line 41 in Twig/Visitor/RemovingNodeVisitor.php

View workflow job for this annotation

GitHub Actions / PHPStan

Syntax error, unexpected T_IF on line 41
return $this->enterNode($node->getNode('node'), $env);
}
}
Expand Down
Loading