RemoveArgumentFromDefaultParentCallRector

Remove default argument from parent call

 class SomeParent
 {
     public function __construct(array $param = [])
     {
     }
 }

 class ChildClass extends SomeParent
 {
     public function __construct(string $differentParam)
     {
         init($differentParam);

-        parent::__construct([]);
+        parent::__construct();
     }
 }

Configure your rector.php:

<?php

use Rector\Config\RectorConfig;
use Rector\DeadCode\Rector\ClassMethod\RemoveArgumentFromDefaultParentCallRector;

return RectorConfig::configure()
    ->withRules([
        RemoveArgumentFromDefaultParentCallRector::class,
    ]);
SETS:  Dead Code