Update symfony/console constraint to ^6.0|^7.0 and PHP minimum to >=8.1#276
Open
opengeek wants to merge 2 commits intomodxcms:3.xfrom
Open
Update symfony/console constraint to ^6.0|^7.0 and PHP minimum to >=8.1#276opengeek wants to merge 2 commits intomodxcms:3.xfrom
opengeek wants to merge 2 commits intomodxcms:3.xfrom
Conversation
The prior constraint (^5.4) blocked consumers who require symfony/console 6 or 7 alongside modern tooling. All console command code is compatible with 6.x and 7.x — no code changes required. PHP minimum aligned to 8.1 to match the project's documented requirement for 3.2. Closes modxcms#180.
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.
What changed and why
The
composer.jsondeclared"symfony/console": "^5.4", blocking consumers who require symfony/console 6 or 7 alongside modern tooling. The project's actual PHP minimum is 8.1, which satisfies symfony/console 6.x (PHP 8.0+) and 7.x (PHP 8.1+). Closes #180.The
phpconstraint of>=7.2.5was also updated to>=8.1to match the project's documented minimum.All console command code was reviewed and is fully compatible with symfony/console 6.x and 7.x — no code changes required beyond the version constraint.
Files and methods changed
composer.json—symfony/console:"^5.4"→"^6.0|^7.0",php:">=7.2.5"→">=8.1"Cross-driver impact
Not applicable. This change affects the Composer dependency manifest only.
Test coverage
No new tests added. The existing test suite validates that console commands continue to work correctly under the updated symfony/console version.
Breaking change assessment
Bumping the PHP minimum to
>=8.1removes support for PHP 7.x and 8.0. This is an alignment with the MODX 3.2's new documented minimum rather than a new restriction. The symfony/console 5.x support is dropped. Not safe for minor-level consumers who are on PHP <8.1 or symfony/console <6.0.Contributors
Reported by @sdrenth, @joeke, @smaddock, @JoshuaLuckers. Additional compatibility note by @smaddock (June 2025).