Skip to content

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
opengeek:fix/180-symfony-console
Open

Update symfony/console constraint to ^6.0|^7.0 and PHP minimum to >=8.1#276
opengeek wants to merge 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. 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 php constraint of >=7.2.5 was also updated to >=8.1 to 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.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.

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.
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