Skip to content

Pin attitude/phpx to ^0.4.1, simplify install to a single require#15

Merged
attitude merged 2 commits into
mainfrom
deps/pin-phpx-0.4
Jul 7, 2026
Merged

Pin attitude/phpx to ^0.4.1, simplify install to a single require#15
attitude merged 2 commits into
mainfrom
deps/pin-phpx-0.4

Conversation

@attitude

@attitude attitude commented Jul 7, 2026

Copy link
Copy Markdown
Owner

Why

Upstream attitude/phpx now tags releases (v0.2.1v0.4.1). Requiring dev-main is no longer necessary and left consumers exposed to unreviewed upstream changes on every composer update.

What

  • composer.json: attitude/phpx dev-main^0.4.1 (renderer attribute fixes, compiler backslash escaping, parser hardening).
  • Recompiled examples/todo/src/components.php with the v0.4.1 compiler. The diff is quote style only: static attributes now emit single-quoted PHP strings (upstream escaping fix fix(compiler): escape backslashes in text, attribute values, and template literals phpx#38). Verified no semantic changes.
  • Install docs (README + getting started): the snippet drops to a single requireattitude/phpx now resolves transitively as a stable release. Verified in a scratch consumer project. Both VCS repositories entries remain until Packagist. Net −2 lines in each file.
  • CHANGELOG: 0.1.1 entry.

Verification

  • composer test: 39 tests, 94 assertions, green (1 pre-existing skip) — before and after recompile.
  • composer analyse: PHPStan clean.
  • Scratch consumer with only attitude/phpx-server required resolves attitude/phpx v0.4.1 transitively.

The install snippet references ^0.1.1, so v0.1.1 should be tagged right after this merges.

🤖 Generated with Claude Code

attitude and others added 2 commits July 7, 2026 05:33
Upstream now tags releases (v0.2.1–v0.4.1), so the dev-main pin is no
longer needed. v0.4.1 brings renderer attribute fixes, compiler
backslash escaping, and parser hardening. The recompiled todo example
only changes quote style: static attributes now emit single-quoted PHP
strings (the compiler escaping fix in attitude/phpx#38).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
With tags on both packages, consumers only require attitude/phpx-server
— attitude/phpx resolves transitively as a stable release (verified in
a scratch consumer project). The dual VCS repository entries remain
required until Packagist.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@attitude attitude merged commit 1cf7070 into main Jul 7, 2026
4 checks passed
@attitude attitude deleted the deps/pin-phpx-0.4 branch July 7, 2026 03:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant