SplitDoubleAssignRector

Split multiple inline assigns to each own lines default value, to prevent undefined array issues

 class SomeClass
 {
     public function run()
     {
-        $one = $two = 1;
+        $one = 1;
+        $two = 1;
     }
 }

Configure your rector.php:

<?php

use Rector\CodingStyle\Rector\Assign\SplitDoubleAssignRector;
use Rector\Config\RectorConfig;

return RectorConfig::configure()
    ->withRules([
        SplitDoubleAssignRector::class,
    ]);
SETS:  Coding Style