diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 389e3be..e3775c4 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: textarea diff --git a/CHANGELOG.md b/CHANGELOG.md index 2663cba..8d433d0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,17 @@ All notable changes to this project will be documented in this file. +## 8.6.0 - Unreleased + +The `8.6.x` line targets PHP 8.6. The API and results are identical to `8.5.3`. See [UPGRADE.md](UPGRADE.md#from-85-to-86). + +### Changed + +- **Requires PHP `>=8.6 <8.7`.** Use the `8.5.x` line on PHP 8.5. +- Requires `pharaonic/php-readable` `~8.6.0`, its PHP 8.6 line. +- PHPStan analyses against PHP 8.6. +- Development requires Pest 5.3.4 with PHPUnit 13.4.5, PHPStan 2.2.15 and Pint 1.30.6, the first releases that run on PHP 8.6 without errors or deprecations. + ## 8.5.3 - 2026-12-01 ### Added diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 542170c..dfe8810 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -78,7 +78,7 @@ composer security # Composer audit composer check # composer validate --strict and all of the above ``` -The scripts run on the PHP that runs Composer, so use the branch's PHP version, for example `php8.5 $(which composer) check` on `8.5.x`. All checks must pass. CI also runs the tests with the lowest allowed dependency versions, on Linux and Windows. +The scripts run on the PHP that runs Composer, so use the branch's PHP version, for example `php8.6 $(which composer) check` on `8.6.x`. All checks must pass. CI also runs the tests with the lowest allowed dependency versions, on Linux and Windows. ## Push and open a pull request diff --git a/MAINTAINING.md b/MAINTAINING.md index e89ce77..1c766d2 100644 --- a/MAINTAINING.md +++ b/MAINTAINING.md @@ -11,7 +11,7 @@ Read, write, check and delete values in nested PHP arrays with dot-notation path 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. A fix lands on the oldest affected line first and is ported forward, retested on each line's own PHP. @@ -31,7 +31,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. PHPStan starts at 2.1.18, the first release that infers the path parser's list type. +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 on `8.6.x`; Pint uses the `psr12` preset on `8.0.x` and `per` on the other lines. PHPStan starts at 2.1.18, the first release that infers the path parser's list type. ## Documentation diff --git a/README.md b/README.md index 7ce7917..2476274 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@
-
+
-
+
diff --git a/SECURITY.md b/SECURITY.md
index cfdcd66..0418e66 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/UPGRADE.md b/UPGRADE.md
index 0f7a1b0..e953ffd 100644
--- a/UPGRADE.md
+++ b/UPGRADE.md
@@ -8,6 +8,7 @@ To upgrade, install the line that matches your PHP version. Composer picks it fo
| Line | PHP | `pharaonic/php-readable` |
|---------|-----|--------------------------|
+| `8.6.x` | 8.6 | `~8.6.0` |
| `8.5.x` | 8.5 | `~8.5.0` |
| `8.4.x` | 8.4 | `~8.4.0` |
| `8.3.x` | 8.3 | `~8.3.0` |
@@ -15,19 +16,16 @@ To upgrade, install the line that matches your PHP version. Composer picks it fo
| `8.1.x` | 8.1 | `~8.1.0` |
| `8.0.x` | 8.0 | `~8.0.1` |
-## From 8.5.0 to 8.5.1
+## From 8.5 to 8.6
-⚠️ `8.5.0` was released before the 8.x rebuild and still ran the 2.x engine. `8.5.1` is a patch release, so `composer update` installs it automatically, but it brings every result change listed in [From 2.x to 8.0](#from-2x-to-80). The API is the same. Review that section before updating, or pin `8.5.0` until you have:
+Version 8.6 targets PHP 8.6. The public API and results are unchanged.
-```bash
-composer require pharaonic/php-dot-array:8.5.0
-```
+### Requirements
-Differences from `8.5.0` that are not in the 2.x list:
+- PHP `>=8.6 <8.7`. Stay on `8.5.x` while you run PHP 8.5.
+- `pharaonic/php-readable` `~8.6.0` (installed automatically).
-- `8.5.0` already deleted integer keys correctly, so section 10's `delete($int)` fix doesn't apply.
-- `dot()` accepts `null` and another `DotArray` again; `8.5.0` accepted arrays only.
-- PHP `>=8.5 <8.6` instead of `^8.5`.
+No code changes are needed.
## From 2.x to 8.0
diff --git a/composer.json b/composer.json
index ff56e9e..01cefbc 100644
--- a/composer.json
+++ b/composer.json
@@ -27,14 +27,14 @@
"security": "https://github.com/Pharaonic/php-dot-array/security/policy"
},
"require": {
- "php": ">=8.5 <8.6",
- "pharaonic/php-readable": "~8.5.0"
+ "php": ">=8.6 <8.7",
+ "pharaonic/php-readable": "~8.6.0"
},
"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": {
diff --git a/docs/sections/02-installation.md b/docs/sections/02-installation.md
index 0ad9b61..c43def3 100644
--- a/docs/sections/02-installation.md
+++ b/docs/sections/02-installation.md
@@ -4,9 +4,9 @@ Install the package with Composer. There is nothing to register or configure.
### 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`
-- `pharaonic/php-readable` ~8.5.0 (installed automatically)
+- `pharaonic/php-readable` ~8.6.0 (installed automatically)
### Composer Installation
diff --git a/docs/sections/12-upgrade-guide.md b/docs/sections/12-upgrade-guide.md
index 163f618..4d3e083 100644
--- a/docs/sections/12-upgrade-guide.md
+++ b/docs/sections/12-upgrade-guide.md
@@ -1,20 +1,14 @@
## Upgrade Guide
-Patch releases within the `8.5.x` line need no migration steps: they keep every result and signature. Each release is listed in the [changelog]({package.githubUrl}/blob/8.5.x/CHANGELOG.md).
+Patch releases within the `8.6.x` line need no migration steps: they keep every result and signature. Each release is listed in the [changelog]({package.githubUrl}/blob/8.6.x/CHANGELOG.md).
Each PHP version has its own release line (`8.0.x`, `8.1.x`, …) with the same API. Composer picks the line that matches your PHP version, so upgrading PHP needs no code changes.
-### From 8.5.0 to 8.5.1
-
-:::warning Patch with result changes
-`8.5.0` still ran the 2.x engine. `8.5.1` is a patch release, so `composer update` installs it automatically, but every change listed under From 2.x to 8.0 applies. Review them first, or pin `8.5.0` with `composer require pharaonic/php-dot-array:8.5.0` until you have.
-:::
-
### From 2.x to 8.0
Version 8.0.0 rebuilt the path engine. Every method and helper from 2.x still exists with the same parameters, and `delete()` still returns `bool`, but some results changed. Most of them were bugs.
-The full list, with before and after values for every change, is in [UPGRADE.md]({package.githubUrl}/blob/8.5.x/UPGRADE.md).
+The full list, with before and after values for every change, is in [UPGRADE.md]({package.githubUrl}/blob/8.6.x/UPGRADE.md).
#### What Changed
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