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

 <?php
 
  use Doctrine\ORM\Mapping as ORM;
       */
      private $trainings;
 
-     /**
-      * @return \Doctrine\Common\Collections\Collection<string, Training>
-      */
+     /**
+      * @return \Doctrine\Common\Collections\Collection<int, \Training>
+      */
      public function getTrainings()
      {
          return $this->trainings;
      }
  }
PHP snippet to change

Applied Rules:

Not a change you expect?

Config  rector.php
Rector version: b09565 - released at 2026-05-25 06:37