Find the best Rector rule to solve your problem. Searching through 727 rules.

Found 1 rule. That's the one:

NamedArgumentForDataProviderRector

Change the array-index names to the argument name of the dataProvider

 use PHPUnit\Framework\TestCase;

 final class SomeTest extends TestCase
 {
     public static function dataProviderArray(): array
     {
         return [
             [
-                'keyA' => true,
-                'keyB' => false,
+                'changeToKeyA' => true,
+                'changeToKeyB' => false,
             ]
         ];
     }

     #[\PHPUnit\Framework\Attributes\DataProvider('dataProviderArray')]
     public function testFilter(bool $changeToKeyA, bool $changeToKeyB): void
     {
     }
 }