Skip to content

Commit f6cd227

Browse files
[7.0] Bump to PHP 8.2 minimum
1 parent e3275f0 commit f6cd227

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

bin/simple-phpunit.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,9 @@
9898
};
9999

100100
if (\PHP_VERSION_ID >= 80000) {
101-
// PHP 8 requires PHPUnit 9.3+, PHP 8.1 requires PHPUnit 9.5+
102-
$PHPUNIT_VERSION = $getEnvVar('SYMFONY_PHPUNIT_VERSION', '9.5') ?: '9.5';
103-
} elseif (\PHP_VERSION_ID >= 70200) {
104-
// PHPUnit 8 requires PHP 7.2+
105-
$PHPUNIT_VERSION = $getEnvVar('SYMFONY_PHPUNIT_VERSION', '8.5') ?: '8.5';
101+
$PHPUNIT_VERSION = $getEnvVar('SYMFONY_PHPUNIT_VERSION', '9.6') ?: '9.6';
106102
} else {
107-
$PHPUNIT_VERSION = $getEnvVar('SYMFONY_PHPUNIT_VERSION', '7.5') ?: '7.5';
103+
$PHPUNIT_VERSION = $getEnvVar('SYMFONY_PHPUNIT_VERSION', '8.5') ?: '8.5';
108104
}
109105

110106
$MAX_PHPUNIT_VERSION = $getEnvVar('SYMFONY_MAX_PHPUNIT_VERSION', false);

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@
1616
}
1717
],
1818
"require": {
19-
"php": ">=7.1.3 EVEN ON LATEST SYMFONY VERSIONS TO ALLOW USING",
19+
"php": ">=7.2.5 EVEN ON LATEST SYMFONY VERSIONS TO ALLOW USING",
2020
"php": "THIS BRIDGE WHEN TESTING LOWEST SYMFONY VERSIONS.",
21-
"php": ">=7.1.3"
21+
"php": ">=7.2.5"
2222
},
2323
"require-dev": {
2424
"symfony/deprecation-contracts": "^2.5|^3.0",
25-
"symfony/error-handler": "^5.4|^6.0|^7.0",
25+
"symfony/error-handler": "^5.4|^6.4|^7.0",
2626
"symfony/polyfill-php81": "^1.27"
2727
},
2828
"conflict": {

0 commit comments

Comments
 (0)