From 8956869715ba8cd317e55ab951fa4c6ce83ed1c3 Mon Sep 17 00:00:00 2001 From: Moamen Eltouny Date: Tue, 1 Dec 2026 17:01:28 +0200 Subject: [PATCH 1/2] build: require PHP 8.6 and move to Pest 5, PHPUnit 13 and PHPStan 2.2.15 --- composer.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/composer.json b/composer.json index 1c70021..0aded2f 100644 --- a/composer.json +++ b/composer.json @@ -29,13 +29,13 @@ "security": "https://github.com/Pharaonic/php-diff/security/policy" }, "require": { - "php": ">=8.5 <8.6" + "php": ">=8.6 <8.7" }, "require-dev": { - "laravel/pint": "^1.20", - "pestphp/pest": "^4.0", - "phpstan/phpstan": "^2.1.33", - "phpunit/phpunit": "^12.5.8" + "laravel/pint": "^1.30.6", + "pestphp/pest": "^5.3.4", + "phpstan/phpstan": "^2.2.15", + "phpunit/phpunit": "^13.4.5" }, "autoload": { "psr-4": { From d033a91b9584a85cbb3f19bcbac9d6046506a416 Mon Sep 17 00:00:00 2001 From: Moamen Eltouny Date: Tue, 1 Dec 2026 17:01:28 +0200 Subject: [PATCH 2/2] docs: document the 8.6.x release line --- CHANGELOG.md | 9 +++++++++ MAINTAINING.md | 4 ++-- README.md | 4 ++-- docs/sections/02-installation.md | 2 +- docs/sections/17-upgrade-guide.md | 8 ++++---- 5 files changed, 18 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7a153eb..fc6e7c3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,15 @@ All notable changes to this project are documented here. +## 8.6.0 - Unreleased + +The `8.6.x` line targets PHP 8.6. Output is identical to `8.5.1`. + +### Changed + +- **Requires PHP `>=8.6 <8.7`.** Use the `8.5.x` line on PHP 8.5. +- Development tooling moves to Pest 5, PHPUnit 13, PHPStan 2.2.15 and Pint 1.30.6, since Pest 4 cannot install on PHP 8.6. + ## 8.5.1 - 2026-12-01 ### Fixed diff --git a/MAINTAINING.md b/MAINTAINING.md index 88ec51b..69dae5d 100644 --- a/MAINTAINING.md +++ b/MAINTAINING.md @@ -11,7 +11,7 @@ Answer "what changed between the old value and the new value?" for structured PH One branch per PHP minor, each requiring exactly that minor (`"php": ">=8.0 <8.1"`): ```text -8.0.x 8.1.x 8.2.x 8.3.x 8.4.x 8.5.x +8.0.x 8.1.x 8.2.x 8.3.x 8.4.x 8.5.x 8.6.x ``` ## Public API invariants @@ -35,7 +35,7 @@ One branch per PHP minor, each requiring exactly that minor (`"php": ">=8.0 <8.1 ## Branch notes -Tooling follows the line's PHP: Pest 1 on `8.0.x` and `8.1.x`, Pest 3 on `8.2.x`, Pest 4 from `8.3.x`; Pint uses the `psr12` preset on `8.0.x` and `per` on the other lines. +Tooling follows the line's PHP: Pest 1 on `8.0.x` and `8.1.x`, Pest 3 on `8.2.x`, Pest 4 on `8.3.x` to `8.5.x`, Pest 5 from `8.6.x` (Pest 4 cannot install on PHP 8.6); Pint uses the `psr12` preset on `8.0.x` and `per` on the other lines. ## Documentation diff --git a/README.md b/README.md index ffc93b5..243f0ff 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@

- PHP Version : 8.5 + PHP Version : 8.6 License - Build + Build
Source Packagist Version diff --git a/docs/sections/02-installation.md b/docs/sections/02-installation.md index d2c10e0..ebeb08b 100644 --- a/docs/sections/02-installation.md +++ b/docs/sections/02-installation.md @@ -4,7 +4,7 @@ Install the package with Composer. There is nothing to register or configure. ### Requirements -- PHP 8.5 +- PHP 8.6 There are no runtime dependencies and no required PHP extensions. diff --git a/docs/sections/17-upgrade-guide.md b/docs/sections/17-upgrade-guide.md index d444b42..dba13b0 100644 --- a/docs/sections/17-upgrade-guide.md +++ b/docs/sections/17-upgrade-guide.md @@ -1,10 +1,10 @@ ## Upgrade Guide -Diff has one release line per PHP version, and every line has the same classes, methods and output. This page covers the `8.5.x` line, for PHP 8.5. +Diff has one release line per PHP version, and every line has the same classes, methods and output. This page covers the `8.6.x` line, for PHP 8.6. ### Patch Releases -Patch releases such as `8.5.0` to `8.5.1` never break your code. Update with: +Patch releases such as `8.6.0` to `8.6.1` never break your code. Update with: ```bash no-line-numbers composer update pharaonic/php-diff @@ -16,8 +16,8 @@ Output changes only to fix a bug, and every such change is listed in the changel No code changes are needed. Composer picks the line that matches your PHP version, so after upgrading PHP run `composer update pharaonic/php-diff`. -The constraint that `composer require` writes (for example `^8.5`) already allows the newer lines. If you pinned a line with a tilde constraint such as `~8.5.0`, widen it first, or Composer stays on `8.5.x` and cannot install on the new PHP version. +The constraint that `composer require` writes (for example `^8.6`) already allows the newer lines. If you pinned a line with a tilde constraint such as `~8.6.0`, widen it first, or Composer stays on `8.6.x` and cannot install on the new PHP version. ### Changelog -Every release is listed in the [changelog](https://github.com/Pharaonic/php-diff/blob/8.5.x/CHANGELOG.md) and on the [GitHub releases](https://github.com/Pharaonic/php-diff/releases) page. +Every release is listed in the [changelog](https://github.com/Pharaonic/php-diff/blob/8.6.x/CHANGELOG.md) and on the [GitHub releases](https://github.com/Pharaonic/php-diff/releases) page.