8000 Use PHPUnit 9.5 on PHP 8.1 · symfony/symfony@bc616e6 · GitHub
[go: up one dir, main page]

Skip to content

Commit bc616e6

Browse files
committed
Use PHPUnit 9.5 on PHP 8.1
Signed-off-by: Alexander M. Turek <me@derrabus.de>
1 parent 5c5fd0c commit bc616e6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,10 @@
9393
}
9494
};
9595

96-
if (\PHP_VERSION_ID >= 80000) {
96+
if (\PHP_VERSION_ID >= 80100) {
97+
// PHP 8.1 requires PHPUnit 9.5+
98+
$PHPUNIT_VERSION = $getEnvVar('SYMFONY_PHPUNIT_VERSION', '9.5') ?: '9.5';
99+
} elseif (\PHP_VERSION_ID >= 80000) {
97100
// PHP 8 requires PHPUnit 9.3+
98101
$PHPUNIT_VERSION = $getEnvVar('SYMFONY_PHPUNIT_VERSION', '9.4') ?: '9.4';
99102
} elseif (\PHP_VERSION_ID >= 70200) {

0 commit comments

Comments
 (0)
0