From 4990b9c87cf66a648c90d1bf907ffd43f80f5a8e Mon Sep 17 00:00:00 2001 From: Alexander Lisachenko Date: Tue, 18 Aug 2026 12:41:37 +0000 Subject: [PATCH] chore(deps): require stable z-engine releases instead of dev branches MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit z-engine now ships stable tags for both supported PHP minors (8.4.2 on the 8.4 line, 8.5.0 on the 8.5 line), so the development-branch constraint is no longer needed. - require "lisachenko/z-engine": "~8.4.2 || ~8.5.0" — one stable release line per supported PHP minor. The tilde admits patch releases inside a line but never the next minor line, which would be built for a PHP this package does not claim to support; each z-engine tag also declares its own ~8.4.0/~8.5.0 platform requirement, so only one line can ever satisfy a given runtime. - drop the root "minimum-stability": "dev" / "prefer-stable": true pair — nothing in require is a development branch any more, so installing this package no longer forces development stability on a consumer's project. - README: describe the resolved z-engine line as a release line. The CI "lowest" leg now resolves real tags (8.4.2 / 8.5.0) rather than a branch tip, so the floor it tests is a version that actually exists. Verified on both minors: PHP 8.4.19 resolves z-engine 8.4.2 and PHP 8.5.9 resolves 8.5.0, 8/8 .phpt tests pass on each. Co-Authored-By: Claude Claude-Session: https://claude.ai/code/session_013foRd1XwLwqjUSkSWeWrMe --- README.md | 3 ++- composer.json | 4 +--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index c8806e1..27c1193 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,8 @@ 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` line (`8.4.x-dev` on PHP 8.4, `8.5.x-dev` on PHP 8.5) is resolved by Composer automatically. +`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. To install this library, simply add it via `composer`: ```bash diff --git a/composer.json b/composer.json index fcfecb4..227cc21 100644 --- a/composer.json +++ b/composer.json @@ -9,12 +9,10 @@ "email": "lisachenko.it@gmail.com" } ], - "minimum-stability": "dev", - "prefer-stable": true, "require": { "php": "^8.4", "ext-ffi": "*", - "lisachenko/z-engine": "8.4.x-dev || 8.5.x-dev" + "lisachenko/z-engine": "~8.4.2 || ~8.5.0" }, "require-dev": { "phpunit/phpunit": "^12.2"