Remove useless alias in use statement as same name with last use statement name
-use App\Bar as Bar;
+use App\Bar;
Configure your rector.php
:
<?php
use Rector\CodingStyle\Rector\Stmt\RemoveUselessAliasInUseStatementRector;
use Rector\Config\RectorConfig;
return RectorConfig::configure()
->withRules([
RemoveUselessAliasInUseStatementRector::class,
]);