Remove useless continue at the end of loops
while ($i < 10) {
++$i;
- continue;
}
Configure your rector.php
:
<?php
use Rector\Config\RectorConfig;
use Rector\DeadCode\Rector\For_\RemoveDeadContinueRector;
return RectorConfig::configure()
->withRules([
RemoveDeadContinueRector::class,
]);