From 9da624d5e7cbf2a1e3a2ba1c2026a14dd76c852e Mon Sep 17 00:00:00 2001 From: Timo Schinkel Date: Mon, 20 Apr 2026 11:11:40 +0200 Subject: [PATCH] Update PHPUnit requirement - and therefore supported PHP version A vulnerability has been reported in PHPUnit, and this vulnerability has been solved in 12.5.22: https://github.com/sebastianbergmann/phpunit/pull/6592 The challenge is that this version of PHPUnit supports PHP 8.3 and higher. Since I don't expect any functional changes in the short term this change proposes updating the PHPUnit version to 12, and in extend update the required PHP version to 8.3. No functionality has changed, so anyone still on an older PHP version can still use the `1.2.0` version of this package. I'm using PHPUnit 12, and not 13, because version 13 requires PHP 8.4, and I would like to support a wide range of PHP versions. - Update PHPUnit to `^12.5.22` - Drop support for PHP < 8.3 --- .github/workflows/pull_request.yml | 2 +- CHANGELOG.md | 4 ++++ composer.json | 4 ++-- phpunit.xml.dist | 30 +++++++++++------------------- 4 files changed, 18 insertions(+), 22 deletions(-) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 106056c..416c24c 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - php-versions: ['8.0', '8.1', '8.2', '8.3', '8.4', '8.5'] + php-versions: ['8.3', '8.4', '8.5'] name: PHP ${{ matrix.php-versions }} steps: diff --git a/CHANGELOG.md b/CHANGELOG.md index d662247..06982e0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.3.0] - 2026-04-20 +### Removed +- Support for PHP versions < 8.3 + ## [1.2.0] - 2023-12-20 ### Removed - Support for PHP versions < 8.0 diff --git a/composer.json b/composer.json index 5594f58..be8e4c5 100644 --- a/composer.json +++ b/composer.json @@ -4,13 +4,13 @@ "type": "library", "license": "MIT", "require": { - "php": "^8.0", + "php": "^8.3", "psr/http-client": "^1.0", "psr/http-message": "^1.0 || ^2.0" }, "require-dev": { "phpspec/prophecy": "^1.17", - "phpunit/phpunit": "^9.0 || ^10.0", + "phpunit/phpunit": "^12.5.22", "squizlabs/php_codesniffer": "^3.5" }, "autoload": { diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 8134766..4f91790 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,21 +1,13 @@ - - - - ./tests - - - - - - src - - + + + + ./tests + + + + + src + +