Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions MAINTAINING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<p align="center"><a href="https://pharaonic.dev/packages/php/dot-array" target="_blank"><img src="https://raw.githubusercontent.com/Pharaonic/php-dot-array/develop/docs/cover.webp"></a></p>

<p align="center">
<a href="https://php.net" target="_blank"><img src="https://img.shields.io/static/v1?label=PHP&message=8.5&color=blue&style=flat-square" alt="PHP Version : 8.5"></a>
<a href="https://php.net" target="_blank"><img src="https://img.shields.io/static/v1?label=PHP&message=8.6&color=blue&style=flat-square" alt="PHP Version : 8.6"></a>
<img src="https://img.shields.io/static/v1?label=License&message=MIT&color=brightgreen&style=flat-square" alt="License">
<img src="https://github.com/Pharaonic/php-dot-array/actions/workflows/build.yml/badge.svg?branch=8.5.x" alt="Build">
<img src="https://github.com/Pharaonic/php-dot-array/actions/workflows/build.yml/badge.svg?branch=8.6.x" alt="Build">
<br>
<a href="https://packagist.org/packages/pharaonic/php-dot-array" target="_blank"><img src="https://img.shields.io/static/v1?label=Packagist&message=pharaonic/php-dot-array&color=blue&logo=packagist&logoColor=white" alt="Source"></a>
<a href="https://packagist.org/packages/pharaonic/php-dot-array" target="_blank"><img src="https://poser.pugx.org/pharaonic/php-dot-array/v" alt="Packagist Version"></a>
Expand Down
1 change: 1 addition & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
16 changes: 7 additions & 9 deletions UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,24 @@ 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` |
| `8.2.x` | 8.2 | `~8.2.0` |
| `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

Expand Down
12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
4 changes: 2 additions & 2 deletions docs/sections/02-installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
10 changes: 2 additions & 8 deletions docs/sections/12-upgrade-guide.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion phpstan.neon.dist
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
parameters:
level: max
phpVersion: 80500
phpVersion: 80600
paths:
- src
tmpDir: .phpstan-cache