From c0d953f50ad6d140853a989a880645607ce5bf6a Mon Sep 17 00:00:00 2001 From: Rod Vince Date: Tue, 8 Sep 2026 14:57:44 -0600 Subject: [PATCH] fix(deps): the dev dependency on core declares a range instead of anything MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `milpa/core` sat in `require-dev` as `*` — a constraint that admits 1.0, 2.0 and every major after them, whose contract this package has never seen. The family writes `>=X <1.0`, and thirteen siblings already do; this is one of seven still saying `*`. Nothing moves to `require`, and that is the measured answer, not a judgement call: src imports nothing from `milpa/*` at all. Its nine files contain zero `use` statements (positive control on the same grep: nine `namespace` lines), and the only non-`Milpa\Data` symbol anywhere in src or tests is a `{@see \Milpa\Live\...}` cross-reference in the prose of a PagesResults docblock — the family docs generator leaves every `{@see}` unrendered, including this package's own, so it links nothing and requires nothing. The one consumer of `milpa/core` here is `tools/gen-docs.php`, which runs the family generator (`Milpa\Docs\SiteGenerator`) shipped inside core's dist — a dev-only tool, and the reason for `autoload-dev`'s `Milpa\Docs\` mapping. The floor is measured, not assumed: with core pinned to v0.6.2 the generator still produced its 10 pages, so `>=0.6.2 <1.0` is a range this package has been run against at both ends, and it is the same floor `agent`, `container`, `devtools`, `http`, `ops`, `resolver` and `workflow` declare. Suite unchanged either way: 120 tests, 233 assertions, 28 skipped without a local MySQL (CI runs the 8.0 service). PHPStan clean, docblocks OK, composer validate --strict valid. Greenhouse evidence/0571 filed this as a residue. --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 267fa32..9ed713a 100644 --- a/composer.json +++ b/composer.json @@ -31,7 +31,7 @@ "phpstan/phpstan": "^2.1", "phpstan/phpdoc-parser": "^2.3", "friendsofphp/php-cs-fixer": "^3.65", - "milpa/core": "*" + "milpa/core": ">=0.6.2 <1.0" }, "autoload": { "psr-4": {