From d163fa907e8f2c48656565bcb1647403a3368141 Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Sun, 10 Sep 2023 00:25:34 +0200 Subject: [PATCH] use method name directly --- src/Rector/Class_/PreferPHPUnitSelfCallRector.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Rector/Class_/PreferPHPUnitSelfCallRector.php b/src/Rector/Class_/PreferPHPUnitSelfCallRector.php index aef04be7..80212584 100644 --- a/src/Rector/Class_/PreferPHPUnitSelfCallRector.php +++ b/src/Rector/Class_/PreferPHPUnitSelfCallRector.php @@ -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; }