Run Rector on your code to see what it can do for you:

 <?php
 
 interface SomeSearch
         return $this->findOneMatching(['id' => $id]);
     }
     
+    /**
+     * @param array<string, string> $criteria
+     */
     #[\Override]
     public function findOneMatching(array $criteria): ?\stdClass
     {
PHP snippet to change

Applied Rules:

Not a change you expect?

Config  rector.php
Rector version: 72f805 - released at 2026-08-03 17:33