Skip to content

Commit

Permalink
simplify ArrayFilterArgVisitor
Browse files Browse the repository at this point in the history
  • Loading branch information
clxmstaab authored and ondrejmirtes committed Sep 20, 2022
1 parent f4a93f6 commit 6d5a65c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Parser/ArrayFilterArgVisitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public function enterNode(Node $node): ?Node
if ($functionName === 'array_filter') {
$args = $node->getArgs();
if (isset($args[0])) {
$args[0]->setAttribute('isArrayFilterArg', $args);
$args[0]->setAttribute('isArrayFilterArg', true);
}
}
}
Expand Down

0 comments on commit 6d5a65c

Please sign in to comment.