Fix build-test CI failure by pinning doctrine/instantiator to PHP 8.2-compatible lock version - #1275
Merged
Merged
Conversation
Co-authored-by: boonebgorges <246627+boonebgorges@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix failing GitHub Actions job build-test
Fix build-test CI failure by pinning doctrine/instantiator to PHP 8.2-compatible lock version
Aug 6, 2026
Contributor
|
@copilot Thanks for this. Would it be simpler or more secure if we instead bumped the CI requirement to PHP 8.4+? |
Contributor
Author
I’d avoid that in this fix. Bumping CI to 8.4 would stop testing compatibility on the current workflow runtime and could mask breakage for users running older supported PHP versions. The lockfile correction is narrower and keeps the existing compatibility target intact. If we decide to officially raise the project’s minimum PHP version, we can do that in a separate PR and then let the lockfile float forward. |
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.
build-testfailed duringcomposer installbecausecomposer.lockpinneddoctrine/instantiatorto2.1.0, which now requires PHP^8.4, while the workflow runs on PHP8.2.x. This PR restores lockfile compatibility with the CI runtime.Root cause
doctrine/instantiatorincomposer.lockresolved to2.1.0(php: ^8.4), creating an unsatisfiable platform constraint in CI.Targeted lockfile correction
doctrine/instantiatorpackage entry incomposer.lockto2.0.0(php: ^8.1).source,dist, support URL, packagerequire-dev, timestamp) to the selected version.Scope
{ "name": "doctrine/instantiator", "version": "2.0.0", "require": { "php": "^8.1" } }