Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d642d85

Browse files
committed
Use PHPUnit 9.3 on php 8.
1 parent f0778ce commit d642d85

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

phpunit

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ if (!getenv('SYMFONY_PHPUNIT_VERSION')) {
1212
if (false === getenv('SYMFONY_PHPUNIT_REMOVE_RETURN_TYPEHINT') && false !== strpos(@file_get_contents(__DIR__.'/src/Symfony/Component/HttpKernel/Kernel.php'), 'const MAJOR_VERSION = 3;')) {
1313
putenv('SYMFONY_PHPUNIT_REMOVE_RETURN_TYPEHINT=1');
1414
}
15-
putenv('SYMFONY_PHPUNIT_VERSION=8.3');
15+
if (\PHP_VERSION_ID >= 80000) {
16+
putenv('SYMFONY_PHPUNIT_VERSION=9.3');
17+
} else {
18+
putenv('SYMFONY_PHPUNIT_VERSION=8.3');
19+
}
1620
} elseif (\PHP_VERSION_ID >= 70000) {
1721
putenv('SYMFONY_PHPUNIT_VERSION=6.5');
1822
}

0 commit comments

Comments
 (0)