diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 1dbb175..4ded802 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -9,14 +9,14 @@ body: id: package-version attributes: label: Package version - placeholder: '8.5.0' + placeholder: '8.6.0' validations: required: true - type: input id: php-version attributes: label: PHP version - placeholder: '8.5' + placeholder: '8.6' validations: required: true - type: input diff --git a/CHANGELOG.md b/CHANGELOG.md index 7d24d41..80b5f2e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,16 @@ All notable changes to this project are documented in this file. +## 8.6.0 - Unreleased + +The `8.6.x` line targets PHP 8.6. Output is identical to `8.5.3`. + +### Changed + +- **Requires PHP `>=8.6 <8.7`.** Use the `8.5.x` line on PHP 8.5. +- PHPStan analyses against PHP 8.6. +- Development tooling moves to Pest 5 and PHPUnit 13, since Pest 4 cannot install on PHP 8.6. + ## 8.5.3 - 2026-12-01 ### Fixed diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 05cb36f..07282aa 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -13,6 +13,7 @@ Each release line targets exactly one PHP version, and the branch name tells you 8.3.x → PHP 8.3 8.4.x → PHP 8.4 8.5.x → PHP 8.5 +8.6.x → PHP 8.6 ... ``` @@ -39,8 +40,8 @@ git remote add upstream https://github.com/Pharaonic/php-readable.git Check out the branch that matches the PHP version you are targeting. For a bug fix, use the oldest line that has the bug: ```bash -git checkout 8.5.x -git pull upstream 8.5.x +git checkout 8.6.x +git pull upstream 8.6.x ``` ## Create a working branch diff --git a/MAINTAINING.md b/MAINTAINING.md index e9c0d9d..46bd401 100644 --- a/MAINTAINING.md +++ b/MAINTAINING.md @@ -11,7 +11,7 @@ Framework-agnostic, human-friendly formatting for PHP: numbers, bytes, money and One branch per PHP minor, each requiring exactly that minor (`"php": ">=8.N <8.N+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 ``` `develop` follows the newest line. Each line uses the native functions of its own PHP (`array_is_list()` from 8.1, typed constants and exact-integer `number_format()` from 8.3, `array_any()` from 8.4, `array_first()`/`array_last()` from 8.5), so a ported change is rewritten for the target line rather than copied. @@ -32,7 +32,7 @@ One branch per PHP minor, each requiring exactly that minor (`"php": ">=8.N <8.N ## 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 d805fdb..ba5f2dd 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/SECURITY.md b/SECURITY.md index 04ad8a1..e534623 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -6,6 +6,7 @@ Security fixes are released for the latest version of each maintained release li | Version | PHP | Supported | |----------|-----|--------------------| +| `8.6.x` | 8.6 | :white_check_mark: | | `8.5.x` | 8.5 | :white_check_mark: | | `8.4.x` | 8.4 | :white_check_mark: | | `8.3.x` | 8.3 | :white_check_mark: | diff --git a/composer.json b/composer.json index 633bd36..06977f9 100644 --- a/composer.json +++ b/composer.json @@ -29,14 +29,14 @@ "security": "https://github.com/Pharaonic/php-readable/security/policy" }, "require": { - "php": ">=8.5 <8.6", + "php": ">=8.6 <8.7", "ext-mbstring": "*" }, "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" }, "suggest": { "ext-intl": "Required only when passing a $locale to the Number, Money and Bytes formatters." diff --git a/docs/sections/02-installation.md b/docs/sections/02-installation.md index 7dfb978..62f3b73 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, publish or conf ### Requirements -- PHP 8.5.x (each `8.x` release line targets the matching PHP version) +- PHP 8.6.x (each `8.x` release line targets the matching PHP version) - `ext-mbstring` - `ext-intl` *(optional)*: only needed when you pass a `$locale` diff --git a/docs/sections/14-upgrade-guide.md b/docs/sections/14-upgrade-guide.md index ede6d3b..72802bc 100644 --- a/docs/sections/14-upgrade-guide.md +++ b/docs/sections/14-upgrade-guide.md @@ -1,10 +1,10 @@ ## Upgrade Guide -Readable 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. +Readable 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.3` 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-readable @@ -16,7 +16,7 @@ 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-readable`. -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 diff --git a/phpstan.neon.dist b/phpstan.neon.dist index 4c52c11..784d607 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -1,6 +1,6 @@ parameters: level: max - phpVersion: 80500 + phpVersion: 80600 paths: - src tmpDir: .phpstan-cache