Skip to content

Commit

Permalink
Gain a little bit of speed
Browse files Browse the repository at this point in the history
  • Loading branch information
JBlond committed Nov 18, 2024
1 parent 140ea09 commit 8b5e186
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jblond/TwigTrans/MacroAutoImportNodeVisitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ public function leaveNode(Node $node, Environment $env): Node
if (
$node instanceof GetAttrExpression
&& $node->getNode('node') instanceof NameExpression
&& '_self' === $node->getNode('node')->getAttribute('name')
&& $node->getNode('attribute') instanceof ConstantExpression
&& '_self' === $node->getNode('node')->getAttribute('name')
) {
$this->hasMacroCalls = true;

Expand Down

0 comments on commit 8b5e186

Please sign in to comment.