Skip to content

Update symfony/console constraint to ^6.0|^7.0 and PHP minimum to >=8.1#276

Merged
opengeek merged 2 commits intomodxcms:3.xfrom
opengeek:fix/180-symfony-console
Mar 30, 2026
Merged

Update symfony/console constraint to ^6.0|^7.0 and PHP minimum to >=8.1#276
opengeek merged 2 commits intomodxcms:3.xfrom
opengeek:fix/180-symfony-console

Conversation

@opengeek
Copy link
Copy Markdown
Member

@opengeek opengeek commented Mar 27, 2026

What changed and why

The composer.json declared "symfony/console": "^5.4", blocking consumers who require symfony/console 6 or 7 alongside modern tooling. I believe it is safe to bump the project's actual PHP minimum is 8.1 at this point with MODX Revolution 3.2 bumping to 8.1 already. This satisfies the requirements for symfony/console 6.x (PHP 8.0+) and 7.x (PHP 8.1+). Closes #180.

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.jsonsymfony/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.1 removes 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.

AI Disclosure

This fix was developed using an AI-assisted workflow. AI agents (Claude) wrote the code, tests, and initial code review under the direction of the project maintainer (@opengeek), who reviewed the final diff, validated the approach, and takes responsibility for the submission.

Contributors

Reported by @sdrenth, @joeke, @smaddock, @JoshuaLuckers. Additional compatibility note by @smaddock (June 2025).

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.
@opengeek opengeek added this to the 3.2.0 milestone Mar 30, 2026
@opengeek opengeek merged commit 46e3ea4 into modxcms:3.x Mar 30, 2026
15 checks passed
@opengeek opengeek deleted the fix/180-symfony-console branch March 30, 2026 23:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update package so it works with latest symfony/console version

1 participant