diff --git a/README.md b/README.md index 1c44bd2..5408b1b 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ use Rector\Config\RectorConfig; return static function (RectorConfig $rectorConfig): void { $rectorConfig->sets([ - SuluLevelSetList::UP_TO_SULU_25, + SuluLevelSetList::UP_TO_SULU_26, ]); }; ``` diff --git a/config/sets/sulu/level/up-to-sulu-26.php b/config/sets/sulu/level/up-to-sulu-26.php new file mode 100644 index 0000000..6a417f9 --- /dev/null +++ b/config/sets/sulu/level/up-to-sulu-26.php @@ -0,0 +1,11 @@ +sets([SuluSetList::SULU_26, SuluLevelSetList::UP_TO_SULU_25]); +}; diff --git a/config/sets/sulu/sulu-26.php b/config/sets/sulu/sulu-26.php new file mode 100644 index 0000000..74a42ef --- /dev/null +++ b/config/sets/sulu/sulu-26.php @@ -0,0 +1,8 @@ +doTestFile($fileInfo); + } + + /** + * @return \Iterator + */ + public function provideData(): \Iterator + { + return $this->yieldFilesFromDirectory(__DIR__ . '/Fixture'); + } + + public function provideConfigFilePath(): string + { + return __DIR__ . '/config/sulu-26.php'; + } +} diff --git a/tests/Set/Sulu26/config/sulu-26.php b/tests/Set/Sulu26/config/sulu-26.php new file mode 100644 index 0000000..df9c03f --- /dev/null +++ b/tests/Set/Sulu26/config/sulu-26.php @@ -0,0 +1,11 @@ +import(__DIR__ . '/../../../../config/config.php'); + $rectorConfig->sets([SuluSetList::SULU_26]); +};