Skip to content

Commit 54b13c0

Browse files
GrahamCampbellnicolas-grekas
authored andcommitted
Require PHPUnit 9.3 on PHP 8
1 parent 63d886f commit 54b13c0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Symfony/Bridge/PhpUnit/bin/simple-phpunit.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,10 @@
9393
}
9494
};
9595

96-
if (PHP_VERSION_ID >= 70200) {
96+
if (PHP_VERSION_ID >= 80000) {
97+
// PHP 8 requires PHPUnit 9.3+
98+
$PHPUNIT_VERSION = $getEnvVar('SYMFONY_PHPUNIT_VERSION', '9.3');
99+
} elseif (PHP_VERSION_ID >= 70200) {
97100
// PHPUnit 8 requires PHP 7.2+
98101
$PHPUNIT_VERSION = $getEnvVar('SYMFONY_PHPUNIT_VERSION', '8.3');
99102
} elseif (PHP_VERSION_ID >= 70100) {

0 commit comments

Comments
 (0)