Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions tests/PHPCSVersions.php
Original file line number Diff line number Diff line change
Expand Up @@ -414,9 +414,19 @@ static function ($version) {
break;

case '8.5':
$versions = array_filter(
self::$allPhpcsVersions,
static function ($version) {
// PHPCS 3.13.4 is the first PHPCS version with runtime support for PHP 8.5.
return version_compare($version, '3.13.4', '>=');
}
);
break;

case '8.6':
/*
* At this point in time, it is unclear as of which PHPCS version PHP 8.5 will be supported.
* In other words: tests should only use dev-master/4.x when on PHP 8.5 for the time being.
* At this point in time, it is unclear as of which PHPCS version PHP 8.6 will be supported.
* In other words: tests should only use 4.x-dev when on PHP 8.6 for the time being.
*/
$versions = array();
break;
Expand Down
Loading