Skip to content

Commit

Permalink
fix PHP 8.2 feature test regression related to issue #372 and CompatI…
Browse files Browse the repository at this point in the history
…nfoDB 6.4.1/6.4.2 compatibility
  • Loading branch information
llaville committed Mar 19, 2024
1 parent dc672c5 commit 61e2239
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/PhpFeatures/Php82IssueTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,16 @@ public static function setUpBeforeClass(): void
*/
public static function dataSourceProvider(): iterable
{
if (extension_loaded('random')) {
$phpMin = '8.2.0beta1';
} else {
// @see Bartlett\CompatInfo\Application\Sniffs\ControlStructures\NonCapturingCatchSniff for details
$phpMin = '8.0.0alpha1';
}

$provides = [
'random_extension.php' => [
'php.min' => '8.2.0beta1',
'php.min' => $phpMin,
],
];

Expand Down

0 comments on commit 61e2239

Please sign in to comment.