Skip to content

Commit f3d4d45

Browse files
authored
Merge pull request #264 from PHPCSStandards/feature/tests-phpcsversion-update-php-8.5-info
Tests/PHPCSVersions: update for branching of PHP 8.5
2 parents 4df7d5d + 301473d commit f3d4d45

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

tests/PHPCSVersions.php

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -414,9 +414,19 @@ static function ($version) {
414414
break;
415415

416416
case '8.5':
417+
$versions = array_filter(
418+
self::$allPhpcsVersions,
419+
static function ($version) {
420+
// PHPCS 3.13.4 is the first PHPCS version with runtime support for PHP 8.5.
421+
return version_compare($version, '3.13.4', '>=');
422+
}
423+
);
424+
break;
425+
426+
case '8.6':
417427
/*
418-
* At this point in time, it is unclear as of which PHPCS version PHP 8.5 will be supported.
419-
* In other words: tests should only use dev-master/4.x when on PHP 8.5 for the time being.
428+
* At this point in time, it is unclear as of which PHPCS version PHP 8.6 will be supported.
429+
* In other words: tests should only use 4.x-dev when on PHP 8.6 for the time being.
420430
*/
421431
$versions = array();
422432
break;

0 commit comments

Comments
 (0)