RemoveDoubleAssignRector

Simplify useless double assigns

-$value = 1;
 $value = 1;

Configure your rector.php:

<?php

use Rector\Config\RectorConfig;
use Rector\DeadCode\Rector\Assign\RemoveDoubleAssignRector;

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