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 change updates the PHP setup action in both workflows, with no identified merge-blocking concern. Pre-merge checks |
|
There was a problem hiding this comment.
🟢 Approval recommended
The verified 2.40.0 pin is correct and consistently replaces all existing setup-php references.
0 open findings
What changed in this PR
Updates the PHP setup action to restore macOS CI compatibility.
Changes:
- Pins
setup-php2.40.0 by its verified commit SHA. - Applies the update consistently to test and lint workflows.
| File | Description |
|---|---|
.github/workflows/test.yml |
Updates PHP setup across 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 scheduled PHPUnit workflow fails on
macos-latestin the "Setup PHP" step (run 38111622074). 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.The same update for GeoIP2-php is maxmind/GeoIP2-php#351.
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