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

 <?php
 
 abstract class Base
 
 final class Child extends Base
 {
+    /**
+     * @var string[]
+     */
     public array $myArray = ['d', 'e', 'f'];
 }
PHP snippet to change

Applied Rules:

Not a change you expect?

Config  rector.php
Rector version: a01724 - released at 2026-06-11 23:36