From 3910b2b2b490e4419f9d1e1a658eb8db1eba524c Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 21 Nov 2026 00:15:02 +0000 Subject: [PATCH 1/2] ci: run the suite on PHP 8.6 alongside 8.4 and 8.5 z-engine's 8.6 line joins the constraint as ~8.6.0@dev: it resolves the 8.6.x-dev branch alias until z-engine tags 8.6.0, and prefer-stable moves it onto the tag by itself (and keeps 8.4/8.5 on their stable tags meanwhile). PHPUnit's floor goes to ^12.3.6: earlier releases pass -d report_memleaks=0 to every .phpt child, a directive PHP 8.6 reports as deprecated at startup, which is prepended to the captured output and fails every --EXPECT-- block on the prefer-lowest leg. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01FxhC1D34vSRsQVcgd3HwS6 --- .github/workflows/ci.yml | 1 + README.md | 14 +++++++++----- composer.json | 5 +++-- 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cb109f7..bf9f4a1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,6 +41,7 @@ jobs: php-version: - '8.4' - '8.5' + - '8.6' steps: - name: Checkout diff --git a/README.md b/README.md index 27c1193..ca48380 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ Immutable objects in PHP ----------------- -This library provides native immutable objects for PHP 8.4 and 8.5 +This library provides native immutable objects for PHP 8.4, 8.5 and 8.6 [![CI](https://github.com/lisachenko/immutable-object/actions/workflows/ci.yml/badge.svg)](https://github.com/lisachenko/immutable-object/actions/workflows/ci.yml) [![GitHub release](https://img.shields.io/github/release/lisachenko/immutable-object.svg)](https://github.com/lisachenko/immutable-object/releases/latest) -[![PHP Version](https://img.shields.io/badge/php-8.4%20%7C%208.5-8892BF.svg)](https://php.net/) +[![PHP Version](https://img.shields.io/badge/php-8.4%20%7C%208.5%20%7C%208.6-8892BF.svg)](https://php.net/) [![License](https://img.shields.io/packagist/l/lisachenko/immutable-object.svg)](https://packagist.org/packages/lisachenko/immutable-object) Rationale @@ -24,9 +24,13 @@ of the PHP itself. Pre-requisites and initialization -------------- -As this library depends on `FFI`, it requires PHP 8.4 or 8.5 and `FFI` extension to be enabled. The matching -`lisachenko/z-engine` release line (`8.4.x` on PHP 8.4, `8.5.x` on PHP 8.5) is resolved by Composer automatically -from the `~8.4.2 || ~8.5.0` constraint — both are stable tags, so no `minimum-stability` tweak is needed. +As this library depends on `FFI`, it requires PHP 8.4, 8.5 or 8.6 and `FFI` extension to be enabled. The matching +`lisachenko/z-engine` release line (`8.4.x` on PHP 8.4, `8.5.x` on PHP 8.5, `8.6.x-dev` on PHP 8.6) is resolved by +Composer automatically from the `~8.4.2 || ~8.5.0 || ~8.6.0@dev` constraint. 8.4 and 8.5 are stable tags, so no +`minimum-stability` tweak is needed for them. On PHP 8.6 the line is z-engine's `8.6.x-dev` (its `master` branch) until z-engine tags 8.6.0. Composer +only honours stability flags in the *root* package, so a project on PHP 8.6 requires +`lisachenko/z-engine:8.6.x-dev` itself (or sets `"minimum-stability": "dev"` with `"prefer-stable": true`) +until then. To install this library, simply add it via `composer`: ```bash diff --git a/composer.json b/composer.json index 227cc21..a82ca00 100644 --- a/composer.json +++ b/composer.json @@ -12,11 +12,12 @@ "require": { "php": "^8.4", "ext-ffi": "*", - "lisachenko/z-engine": "~8.4.2 || ~8.5.0" + "lisachenko/z-engine": "~8.4.2 || ~8.5.0 || ~8.6.0@dev" }, "require-dev": { - "phpunit/phpunit": "^12.2" + "phpunit/phpunit": "^12.3.6" }, + "prefer-stable": true, "autoload": { "psr-4": { "Immutable\\": "src/" From 352e362a103a81febdc457af770145df73fc2081 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 21 Nov 2026 11:57:35 +0000 Subject: [PATCH 2/2] chore(deps): require the stable z-engine 8.6.0 release z-engine tagged 8.6.0, so the PHP 8.6 line no longer needs its 8.6.x-dev branch: the constraint becomes ~8.4.2 || ~8.5.0 || ~8.6.0, every minor resolves a stable tag, and the docs drop the root-level workaround a consumer on PHP 8.6 needed until now. The prefer-stable flag existed only to keep 8.4/8.5 on their tags while the dev constraint was present, and goes with it. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01FxhC1D34vSRsQVcgd3HwS6 --- README.md | 9 +++------ composer.json | 3 +-- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index ca48380..793f2ca 100644 --- a/README.md +++ b/README.md @@ -25,12 +25,9 @@ of the PHP itself. Pre-requisites and initialization -------------- As this library depends on `FFI`, it requires PHP 8.4, 8.5 or 8.6 and `FFI` extension to be enabled. The matching -`lisachenko/z-engine` release line (`8.4.x` on PHP 8.4, `8.5.x` on PHP 8.5, `8.6.x-dev` on PHP 8.6) is resolved by -Composer automatically from the `~8.4.2 || ~8.5.0 || ~8.6.0@dev` constraint. 8.4 and 8.5 are stable tags, so no -`minimum-stability` tweak is needed for them. On PHP 8.6 the line is z-engine's `8.6.x-dev` (its `master` branch) until z-engine tags 8.6.0. Composer -only honours stability flags in the *root* package, so a project on PHP 8.6 requires -`lisachenko/z-engine:8.6.x-dev` itself (or sets `"minimum-stability": "dev"` with `"prefer-stable": true`) -until then. +`lisachenko/z-engine` release line (`8.4.x` on PHP 8.4, `8.5.x` on PHP 8.5, `8.6.x` on PHP 8.6) is resolved by +Composer automatically from the `~8.4.2 || ~8.5.0 || ~8.6.0` constraint — all three are stable tags, so no +`minimum-stability` tweak is needed. To install this library, simply add it via `composer`: ```bash diff --git a/composer.json b/composer.json index a82ca00..0d41861 100644 --- a/composer.json +++ b/composer.json @@ -12,12 +12,11 @@ "require": { "php": "^8.4", "ext-ffi": "*", - "lisachenko/z-engine": "~8.4.2 || ~8.5.0 || ~8.6.0@dev" + "lisachenko/z-engine": "~8.4.2 || ~8.5.0 || ~8.6.0" }, "require-dev": { "phpunit/phpunit": "^12.3.6" }, - "prefer-stable": true, "autoload": { "psr-4": { "Immutable\\": "src/"