live627 / laughing-palm-tree

Fun and games

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

smf Rector

This project contains Rector rules for smf CMS upgrades.

Install

Install rector and smf rector via composer to your project:

composer require rector/rector --dev
composer require smf/smf-rector --dev

Use Sets

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,
	]);
};

About

Fun and games

License:MIT License


Languages

Language:PHP 100.0%