From a496f92b231823fde4e48a5472e60e97a00e8b1e Mon Sep 17 00:00:00 2001 From: Christophe Coevoet Date: Mon, 24 Jun 2024 19:21:52 +0200 Subject: [PATCH] Bump the min PHP version to 8.1 This matches the PHP requirement of Symfony 6.4 LTS which will be the new minimum version. --- .github/workflows/ci.yaml | 4 +--- composer.json | 2 +- tests/Util/CanonicalizerTest.php | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index b6b129beb..1fab3bebf 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -15,15 +15,13 @@ jobs: fail-fast: false matrix: php: - - '7.4' - - '8.0' - '8.1' - '8.2' - '8.3' symfony-versions: [false] include: - description: 'Symfony 4.*' - php: '7.4' + php: '8.1' symfony-versions: '^4.4' - description: 'Symfony 5.*' php: '8.1' diff --git a/composer.json b/composer.json index 99683afbf..ec1911001 100644 --- a/composer.json +++ b/composer.json @@ -21,7 +21,7 @@ } ], "require": { - "php": "^7.4 || ^8.0", + "php": "^8.1", "ext-dom": "*", "ext-json": "*", "symfony/config": "^4.4 || ^5.0 || ^6.0 || ^7.0", diff --git a/tests/Util/CanonicalizerTest.php b/tests/Util/CanonicalizerTest.php index 3216c4abf..2fff2aaf3 100644 --- a/tests/Util/CanonicalizerTest.php +++ b/tests/Util/CanonicalizerTest.php @@ -33,7 +33,7 @@ public function canonicalizeProvider() return [ [null, null], ['FOO', 'foo'], - [chr(171), PHP_VERSION_ID < 50600 ? chr(171) : '?'], + [chr(171), '?'], ]; } }