Skip to content

Commit

Permalink
Make use of startsWith()
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Sep 9, 2023
1 parent 1a71389 commit b9303b5
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,7 @@ public function refactor(Node $node): ?Node

private function processMethodCall(MethodCall $methodCall): CallLike|null
{
if ($methodCall->name instanceof Identifier
&& $this->nodeNameResolver->matchesStringName($methodCall->name, 'assert*')
) {
if ($this->nodeNameResolver->startsWith($methodCall->name, 'assert')) {
return $this->processAssertMethodCall($methodCall);
}

Expand Down

0 comments on commit b9303b5

Please sign in to comment.