Repository navigation
Fix main's red CI: macOS Composer on PHP 8.4 and the setup-php pin comment - #1102
Merged
Merged
Conversation
Since 2026-10-07 23:51Z every Composer compatibility run has failed
its macOS 2.10.3 / PHP 8.5 cell in "Setup PHP": setup-php 2.37.2
cannot install PHP 8.5 from Homebrew now that PHP 8.6 has shipped
("php: command not found", "Could not setup PHP 8.5"). This keeps
main red on every push.
Run that cell on PHP 8.4, which Composer 2.10.3 supports. Ubuntu and
Windows keep the 2.10.3 / PHP 8.5 cell, so 8.5 is still covered.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Collaborator
Author
|
Validation: dispatched run 37715262908 on this branch. All three macOS cells passed: |
This was referenced Oct 8, 2026
The upstream v2 tag moved off f3e473d1, so zizmor's ref-version-mismatch audit now fails every merge group that touches workflows. f3e473d1 is 2.37.2, the label composer-compatibility.yml already uses. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Mikola Lysenko (mikolalysenko)
enabled auto-merge
October 8, 2026 11:01
Wenxin Jiang (Wenxin-Jiang)
approved these changes
Oct 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Every Composer compatibility run since 2026-10-07 23:51Z fails its macOS
composer 2.10.3 / php 8.5cell in "Setup PHP". The 10 most recent runs all failed there, on main and on PRs (e.g. main run 37712459222):On 10-07, Homebrew's PHP formulas were reshuffled when PHP 8.6 was published (shivammathur/homebrew-php). Since then, setup-php 2.37.2 (our pinned version, the latest stable) can't install PHP 8.5 on macOS. The other macOS cells (PHP 8.1 and 8.3) still pass.
Fix
Run the macOS 2.10.3 cell on PHP 8.4, which Composer 2.10.3 supports. Ubuntu and Windows keep the
2.10.3 / 8.5cell, so PHP 8.5 is still covered. The macOS row indocs/testing/composer-compatibility.mdis updated to match.Validation
The macOS legs no longer run on PRs (#1093), so I dispatched the workflow on this branch: run 37715262908 (result in a follow-up comment).
Also: zizmor
ref-version-mismatchonci.ymlThe org's Audit GHA Workflows check now fails any merge group that touches workflows (for example #1050, run 37749840803). It flags
ci.yml:1400,shivammathur/setup-php@f3e473d1 # v2: the upstreamv2tag has moved off that commit.f3e473d1is tag2.37.2(verified with the GitHub API), so the comment now says# 2.37.2, matchingcomposer-compatibility.yml. The pin itself is unchanged. #1058 has the same one-line fix, but it is a much larger PR.🤖 Generated with Claude Code
Note
Low Risk
CI matrix and documentation only; no application or patch logic changes.
Overview
Fixes failing macOS Composer compatibility CI after Homebrew/setup-php stopped providing PHP 8.5 once PHP 8.6 landed (Setup PHP step:
php: command not found).The
native-macosmatrix cell for Composer 2.10.3 now runs on PHP 8.4 instead of 8.5, with an inline comment documenting the setup-php limitation. Ubuntu and Windows still use 2.10.3 / 8.5, so PHP 8.5 coverage is unchanged overall. The macOS row indocs/testing/composer-compatibility.mdis updated to 2.10.3 (8.4).Reviewed by Cursor Bugbot for commit b4cba52. Configure here.