Skip to content

Commit

Permalink
[CodingStyle] Return null on no change on StrictArraySearchRector (#5528
Browse files Browse the repository at this point in the history
)
  • Loading branch information
samsonasik committed Jan 30, 2024
1 parent 2f041dc commit 6046c24
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@ public function refactor(Node $node): ?Node

if (count($node->args) === 2) {
$node->args[2] = $this->nodeFactory->createArg($this->nodeFactory->createTrue());
return $node;
}

return $node;
return null;
}
}

0 comments on commit 6046c24

Please sign in to comment.