Skip to content

Commit

Permalink
Fix syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
kylekatarnls committed Sep 15, 2023
1 parent 2fee145 commit 4900081
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/php/PHPMD/Rule/CleanCode/BooleanArgumentFlag.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function apply(AbstractNode $node)
}

$currNode = $node->getNode();
$parent = is_callable(array($currNode, 'getParent') ? $currNode->getParent() : null;
$parent = is_callable(array($currNode, 'getParent')) ? $currNode->getParent() : null;

if ($parent &&
($parent instanceof AbstractASTClassOrInterface) &&
Expand Down

0 comments on commit 4900081

Please sign in to comment.