Skip to content

Commit

Permalink
Tests/PHPCSVersions: add PHPCS 3.7.2/3.8.0 to the mix
Browse files Browse the repository at this point in the history
  • Loading branch information
jrfnl committed Dec 3, 2023
1 parent 4de1fd8 commit 626984e
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions tests/PHPCSVersions.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ final class PHPCSVersions
'3.6.2' => '3.6.2',
'3.7.0' => '3.7.0',
'3.7.1' => '3.7.1',
'3.7.2' => '3.7.2',
'3.8.0' => '3.8.0',
);

/**
Expand Down Expand Up @@ -354,10 +356,19 @@ function ($version) {
break;

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

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

0 comments on commit 626984e

Please sign in to comment.