File tree Expand file tree Collapse file tree 7 files changed +33
-0
lines changed
Expand file tree Collapse file tree 7 files changed +33
-0
lines changed 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 Rector \Set \ValueObject \LevelSetList ;
7+ use Rector \Set \ValueObject \SetList ;
8+
9+ return static function (RectorConfig $ rectorConfig ): void {
10+ $ rectorConfig ->sets ([SetList::PHP_86 , LevelSetList::UP_TO_PHP_85 ]);
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+ $ rectorConfig ->rules ([
9+ ]);
10+ };
Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ final class PhpLevelSetResolver
3535 PhpVersion::PHP_83 => SetList::PHP_83 ,
3636 PhpVersion::PHP_84 => SetList::PHP_84 ,
3737 PhpVersion::PHP_85 => SetList::PHP_85 ,
38+ PhpVersion::PHP_86 => SetList::PHP_86 ,
3839 ];
3940
4041 /**
Original file line number Diff line number Diff line change @@ -574,6 +574,7 @@ public function withPhpSets(
574574 // place on later as BC break when used in php 7.x without named arg
575575 bool $ php84 = false ,
576576 bool $ php85 = false ,
577+ bool $ php86 = false ,
577578 ): self {
578579 if ($ this ->isWithPhpSetsUsed === true ) {
579580 throw new InvalidConfigurationException (sprintf (
@@ -655,6 +656,8 @@ public function withPhpSets(
655656
656657 if ($ php80 ) {
657658 $ targetPhpVersion = PhpVersion::PHP_80 ;
659+ } elseif ($ php86 ) {
660+ $ targetPhpVersion = PhpVersion::PHP_86 ;
658661 } elseif ($ php81 ) {
659662 $ targetPhpVersion = PhpVersion::PHP_81 ;
660663 } elseif ($ php82 ) {
@@ -665,6 +668,8 @@ public function withPhpSets(
665668 $ targetPhpVersion = PhpVersion::PHP_84 ;
666669 } elseif ($ php85 ) {
667670 $ targetPhpVersion = PhpVersion::PHP_85 ;
671+ } elseif ($ php86 ) {
672+ $ targetPhpVersion = PhpVersion::PHP_86 ;
668673 } else {
669674 throw new InvalidConfigurationException ('Invalid PHP version set ' );
670675 }
Original file line number Diff line number Diff line change 99 */
1010final class LevelSetList
1111{
12+ public const string UP_TO_PHP_86 = __DIR__ . '/../../../config/set/level/up-to-php86.php ' ;
13+
1214 public const string UP_TO_PHP_85 = __DIR__ . '/../../../config/set/level/up-to-php85.php ' ;
1315
1416 public const string UP_TO_PHP_84 = __DIR__ . '/../../../config/set/level/up-to-php84.php ' ;
Original file line number Diff line number Diff line change @@ -66,6 +66,8 @@ final class SetList
6666
6767 public const string PHP_85 = __DIR__ . '/../../../config/set/php85.php ' ;
6868
69+ public const string PHP_86 = __DIR__ . '/../../../config/set/php86.php ' ;
70+
6971 public const string PRIVATIZATION = __DIR__ . '/../../../config/set/privatization.php ' ;
7072
7173 public const string TYPE_DECLARATION = __DIR__ . '/../../../config/set/type-declaration.php ' ;
Original file line number Diff line number Diff line change @@ -41,5 +41,7 @@ final class PhpVersion
4141
4242 public const int PHP_85 = 80500 ;
4343
44+ public const int PHP_86 = 80600 ;
45+
4446 public const int PHP_10 = 100000 ;
4547}
You can’t perform that action at this time.
0 commit comments