This project contains Rector rules for smf CMS upgrades.
Install rector and smf rector via composer to your project:
composer require rector/rector --dev
composer require smf/smf-rector --dev
To add a set to your config, use smf\Rector\Set\SymfonySetList
and smf\Rector\Set\smfLevelSetList
class and pick one of constants:
use smf\Rector\Set\smfLevelSetList;
use Rector\Config\RectorConfig;
return static function (RectorConfig $rectorConfig): void {
$rectorConfig->sets([
smfLevelSetList::UP_TO_smf_25,
]);
};