Skip to content

Commit

Permalink
use method name directly
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Sep 9, 2023
1 parent f07d7f0 commit d163fa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Rector/Class_/PreferPHPUnitSelfCallRector.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public function refactor(Node $node): ?Node
return null;
}

if (! $this->nodeNameResolver->startsWith($node->name, 'assert')) {
if (! str_starts_with($methodName, 'assert')) {
return null;
}

Expand Down

0 comments on commit d163fa9

Please sign in to comment.