10000 minor #37595 Require PHPUnit 9.3 on PHP 8 (GrahamCampbell) · symfony/symfony@a0f7c88 · GitHub
[go: up one dir, main page]

Skip to content

Commit a0f7c88

Browse files
minor #37595 Require PHPUnit 9.3 on PHP 8 (GrahamCampbell)
This PR was squashed before being merged into the 4.4 branch. Discussion ---------- Require PHPUnit 9.3 on PHP 8 | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | License | MIT The first version of PHPUnit to support PHP 8.0 is PHPUnit 9.3. --- Depends on #37607. Related to composer/composer#9054. Commits ------- 54b13c0 Require PHPUnit 9.3 on PHP 8
2 parents 2dbbe50 + 54b13c0 commit a0f7c88

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 >= 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)
0