Commit 5ccd24e 1 parent 0b00388 commit 5ccd24e Copy full SHA for 5ccd24e
File tree 9 files changed +74
-2
lines changed
9 files changed +74
-2
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ use Rector\Config\RectorConfig;
22
22
23
23
return static function (RectorConfig $rectorConfig): void {
24
24
$rectorConfig->sets([
25
- SuluLevelSetList::UP_TO_SULU_25 ,
25
+ SuluLevelSetList::UP_TO_SULU_26 ,
26
26
]);
27
27
};
28
28
```
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ declare (strict_types=1 );
4
+
5
+ use Rector \Config \RectorConfig ;
6
+ use Sulu \Rector \Set \SuluLevelSetList ;
7
+ use Sulu \Rector \Set \SuluSetList ;
8
+
9
+ return static function (RectorConfig $ rectorConfig ): void {
10
+ $ rectorConfig ->sets ([SuluSetList::SULU_26 , SuluLevelSetList::UP_TO_SULU_25 ]);
11
+ };
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ declare (strict_types=1 );
4
+
5
+ use Rector \Config \RectorConfig ;
6
+
7
+ return static function (RectorConfig $ rectorConfig ): void {
8
+ };
Original file line number Diff line number Diff line change @@ -17,4 +17,9 @@ final class SuluLevelSetList implements SetListInterface
17
17
* @var string
18
18
*/
19
19
final public const UP_TO_SULU_25 = __DIR__ . '/../../config/sets/sulu/level/up-to-sulu-25.php ' ;
20
+
21
+ /**
22
+ * @var string
23
+ */
24
+ final public const UP_TO_SULU_26 = __DIR__ . '/../../config/sets/sulu/level/up-to-sulu-26.php ' ;
20
25
}
Original file line number Diff line number Diff line change @@ -17,4 +17,9 @@ final class SuluSetList implements SetListInterface
17
17
* @var string
18
18
*/
19
19
final public const SULU_25 = __DIR__ . '/../../config/sets/sulu/sulu-25.php ' ;
20
+
21
+ /**
22
+ * @var string
23
+ */
24
+ final public const SULU_26 = __DIR__ . '/../../config/sets/sulu/sulu-26.php ' ;
20
25
}
Original file line number Diff line number Diff line change 2
2
3
3
declare (strict_types=1 );
4
4
5
- namespace Sulu \Rector \Tests \Set \Sulu24 ;
5
+ namespace Sulu \Rector \Tests \Set \Sulu25 ;
6
6
7
7
use Rector \Testing \PHPUnit \AbstractRectorTestCase ;
8
8
use Symplify \SmartFileSystem \SmartFileInfo ;
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ declare (strict_types=1 );
4
+
5
+ namespace Sulu \Rector \Tests \Set \Sulu26 ;
6
+
7
+ use Rector \Testing \PHPUnit \AbstractRectorTestCase ;
8
+ use Symplify \SmartFileSystem \SmartFileInfo ;
9
+
10
+ final class Sulu26Test extends AbstractRectorTestCase
11
+ {
12
+ /**
13
+ * @dataProvider provideData()
14
+ */
15
+ public function test (string $ fileInfo ): void
16
+ {
17
+ $ this ->doTestFile ($ fileInfo );
18
+ }
19
+
20
+ /**
21
+ * @return \Iterator<SmartFileInfo>
22
+ */
23
+ public function provideData (): \Iterator
24
+ {
25
+ return $ this ->yieldFilesFromDirectory (__DIR__ . '/Fixture ' );
26
+ }
27
+
28
+ public function provideConfigFilePath (): string
29
+ {
30
+ return __DIR__ . '/config/sulu-26.php ' ;
31
+ }
32
+ }
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ declare (strict_types=1 );
4
+
5
+ use Rector \Config \RectorConfig ;
6
+ use Sulu \Rector \Set \SuluSetList ;
7
+
8
+ return static function (RectorConfig $ rectorConfig ): void {
9
+ $ rectorConfig ->import (__DIR__ . '/../../../../config/config.php ' );
10
+ $ rectorConfig ->sets ([SuluSetList::SULU_26 ]);
11
+ };
You can’t perform that action at this time.
0 commit comments