diff --git a/rector.php b/rector.php index c5a33f9835..119564ca4f 100644 --- a/rector.php +++ b/rector.php @@ -6,6 +6,7 @@ return static function (RectorConfig $rectorConfig): void { $rectorConfig->importNames(); + $rectorConfig->removeUnusedImports(); $rectorConfig->import(__DIR__ . '/vendor/sylius/sylius-rector/config/config.php'); $rectorConfig->paths([ __DIR__ . '/src'