Repository navigation
Conversation
setup-php 2.37.2 installs PHP on macOS from the live Homebrew tap. It resets Homebrew to origin/main and hides the brew output. Homebrew changes from 2026-10-07 to 2026-10-09 broke this path, and the PHP 8.5 macOS job fails with "Could not setup PHP 8.5". setup-php 2.40.0 resolves tap formula aliases before it calls brew and uses the Homebrew API when homebrew-core is not tapped. It also installs prebuilt PHP builds on macOS. Dependabot's 7-day cooldown would delay this update until 2026-10-19. ENG-5610 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to The PHP workflows will use setup-php 2.40.0, intended to address the reported macOS setup failure. The supplied change shows no additional workflow changes or concrete new merge risk. Pre-merge checks |
|
There was a problem hiding this comment.
🟢 Approval recommended
The narrowly scoped update uses the verified 2.40.0 commit and addresses the documented setup failure.
0 open findings
What changed in this PR
Updates setup-php to fix macOS CI failures. The pinned SHA is verified as version 2.40.0.
Changes:
- Updates PHPUnit and lint workflows from setup-php 2.37.2 to 2.40.0.
| File | Description |
|---|---|
.github/workflows/test.yml |
Updates PHP setup for the test matrix. |
.github/workflows/lint.yml |
Updates PHP setup for lint checks. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
The PHPUnit workflow fails on
macos-latestin the "Setup PHP" step (run 38110243142). The PHP 8.5 job fails withCould not setup PHP 8.5, and the other macOS jobs are cancelled.Cause
setup-php 2.37.2 installs PHP on macOS from the live
shivammathur/phpHomebrew tap. It resets Homebrew toorigin/main, setsHOMEBREW_NO_INSTALL_FROM_API=1, and hides the brew output. Homebrew changes from 2026-10-07 to 2026-10-09 broke this path. setup-php 2.40.0 fixes it:php@8.5, before it calls brew.shivammathur/php-darwin.Change
Pin
shivammathur/setup-phpto 2.40.0 intest.ymlandlint.yml. Dependabot's 7-day cooldown would delay this update until 2026-10-19.ENG-5610
🤖 Generated with Claude Code
Summary by CodeRabbit