8000 minor #43200 [PhpUnitBridge] Use PHPUnit 9.5 on PHP 8.1 (derrabus) · symfony/symfony@b60f51d · GitHub
[go: up one dir, main page]

Skip to content

Commit b60f51d

Browse files
minor #43200 [PhpUnitBridge] Use PHPUnit 9.5 on PHP 8.1 (derrabus)
This PR was merged into the 4.4 branch. Discussion ---------- [PhpUnitBridge] Use PHPUnit 9.5 on PHP 8.1 | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Part of #41552 | License | MIT | Doc PR | N/A On PHP 8.1, PhpUnitBridge currently defaults to an incompatible PHPUnit version. This PR proposes to use PHPUnit 9.5 instead. Commits ------- b177c08 Use PHPUnit 9.5 on PHP 8.1
2 parents 0eac61e + b177c08 commit b60f51d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
< 8000 table aria-label="Diff for: src/Symfony/Bridge/PhpUnit/bin/simple-phpunit.php" class="tab-size width-full DiffLines-module__tableLayoutFixed--YZcIJ" data-diff-anchor="diff-104d820e5f9503b7b4300b5091414a8da18f4a6e90845733ee25b422e924bc8b" data-tab-size="8" data-paste-markdown-skip="true" role="grid" style="--line-number-cell-width:44px;--line-number-cell-width-unified:88px">Original file line numberDiff line numberDiff line change
@@ -94,11 +94,11 @@
9494
};
9595

9696
if (\PHP_VERSION_ID >= 80000) {
97-
// PHP 8 requires PHPUnit 9.3+
98-
$PHPUNIT_VERSION = $getEnvVar('SYMFONY_PHPUNIT_VERSION', '9.4') ?: '9.4';
97+
// PHP 8 requires PHPUnit 9.3+, PHP 8.1 requires PHPUnit 9.5+
98+
$PHPUNIT_VERSION = $getEnvVar('SYMFONY_PHPUNIT_VERSION', '9.5') ?: '9.5';
9999
} elseif (\PHP_VERSION_ID >= 70200) {
100100
// PHPUnit 8 requires PHP 7.2+
101-
$PHPUNIT_VERSION = $getEnvVar('SYMFONY_PHPUNIT_VERSION', '8.3') ?: '8.3';
101+
$PHPUNIT_VERSION = $getEnvVar('SYMFONY_PHPUNIT_VERSION', '8.5') ?: '8.5';
102102
} elseif (\PHP_VERSION_ID >= 70100) {
103103
// PHPUnit 7 requires PHP 7.1+
104104
$PHPUNIT_VERSION = $getEnvVar('SYMFONY_PHPUNIT_VERSION', '7.5') ?: '7.5';

0 commit comments

Comments
 (0)
0