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 1, 2023
1 parent 8662d1c commit 4a5abb6
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 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,9 +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.2 will be supported.
* In other words: tests should only use dev-master/4.x when on PHP 8.2 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 4a5abb6

Please sign in to comment.