Skip to content

chore!: master now targets PHP 8.5+ only - #218

Merged
lisachenko merged 2 commits into
masterfrom
claude/php-8.5-only-master
Aug 25, 2026
Merged

chore!: master now targets PHP 8.5+ only#218
lisachenko merged 2 commits into
masterfrom
claude/php-8.5-only-master

Conversation

@lisachenko

@lisachenko lisachenko commented Aug 25, 2026

Copy link
Copy Markdown
Member

Summary

master becomes the line for PHP 8.5 development going forward. The 8.4-compatible 4.x branch (released as 4.0.0) continues to receive fixes and cascades them forward into master via the cascade-merge workflow added in #216.

  • composer.json: require.php bumped from >=8.4 to >=8.5; extra.branch-alias.dev-master changed from 4.x-dev to 8.5-dev, as requested.
  • README.md: PHP version badge updated to >=8.5.
  • CLAUDE.md: "Requires PHP" line, the Agent runtime requirement section (now rejects 8.4.x and below), and the CI description updated to 8.5.
  • CI: dropped the 8.4 leg from the phpunit.yml matrix (8.5 lowest/highest + 8.6 experimental remain), moved the phpstan.yml job and the Copilot copilot-setup-steps.yml PHP setup step from 8.4 to 8.5.
  • .github/copilot-instructions.md: this file was already out of sync with the repo (still said >=8.2 and an 8.2/8.3/8.4 CI matrix even before this change) — updated its PHP-version facts to match the new 8.5 baseline while it was being touched.

Left untouched: mentions of specific PHP versions that describe when a language feature was introduced rather than the library's minimum requirement — e.g. README's "PHP 8.4 property hooks" feature callout, PHP_VERSION_ID-gated test logic, and the versioned test stub filenames (FileWithClasses82.php etc.), since the AST parser continues to support reflecting code written for older PHP versions regardless of the host's minimum requirement.

Test plan

  • vendor/bin/phpunit — 13,743 tests pass locally on PHP 8.5.9
  • composer.json validated as well-formed JSON
  • CI (PHPUnit 8.5 lowest/highest, PHPUnit 8.6 experimental, PHPStan)

🤖 Generated with Claude Code

https://claude.ai/code/session_013xfs2FHTpipY3LRBtC5vLK


Generated by Claude Code

claude added 2 commits August 25, 2026 06:28
master becomes the line for PHP 8.5 development; the 8.4-compatible
4.x branch continues to receive fixes and cascades them forward via
the new cascade-merge workflow.

- composer.json: require php >=8.5 (was >=8.4), alias dev-master to
  8.5-dev (was 4.x-dev)
- README badge and CLAUDE.md requirement/CI notes updated to 8.5
- CI: drop the 8.4 leg from the PHPUnit matrix (8.5 lowest/highest +
  8.6 experimental remain), move the PHPStan job and Copilot setup
  step from PHP 8.4 to 8.5
- .github/copilot-instructions.md: correct its already-stale PHP
  version facts (was still describing >=8.2 and an 8.2/8.3/8.4 matrix)
  to match the new 8.5 baseline

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013xfs2FHTpipY3LRBtC5vLK
master requires PHP >=8.5 as of this branch, so the >= 80500 check
in resolveName() is always true and its fallback (pre-8.5 self/parent
handling) is now dead code — caught by PHPStan level 10 on the CI job
this same PR moved from PHP 8.4 to 8.5.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013xfs2FHTpipY3LRBtC5vLK
@lisachenko
lisachenko marked this pull request as ready for review August 25, 2026 06:41
@lisachenko
lisachenko merged commit 0c6d1a8 into master Aug 25, 2026
8 checks passed
@lisachenko
lisachenko deleted the claude/php-8.5-only-master branch August 25, 2026 06:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants