Fix compatibility with symfony/console 8.x#1503
Merged
stof merged 1 commit intophpspec:mainfrom Jan 20, 2026
Merged
Conversation
The `add()` method has been removed in Symfony 8.x. `addCommands()` has been available since long ago and can be used to be cross-version compatible.
Rafikooo
added a commit
to Rafikooo/SyliusMailerBundle
that referenced
this pull request
Jan 13, 2026
phpspec 8.1 has a compatibility issue with symfony/console 8.x that causes 'Call to undefined method Application::add()' error. PHPUnit tests still run for Symfony 8 to validate compatibility.
stof
approved these changes
Jan 16, 2026
roukmoute
added a commit
to roukmoute/polyfill-calendar
that referenced
this pull request
Jan 16, 2026
- Require PHP 8.0+ - Update CI test matrix to PHP 8.0-8.3 - Upgrade to php-cs-fixer v3 - Update dev dependencies (phpstan ^1.0, psalm ^5.0) - Apply PHP 8 code style (nullable types syntax) - Remove obsolete PedroTroller/single_line_comment fixer - Bump version to 2.0-dev Note: PHP 8.4 tests skipped due to phpspec bug with Symfony Console 8 (see phpspec/phpspec#1503)
roukmoute
added a commit
to roukmoute/polyfill-calendar
that referenced
this pull request
Jan 16, 2026
- Require PHP 8.0+ - Update CI test matrix to PHP 8.0-8.3 - Upgrade to php-cs-fixer v3 - Update dev dependencies (phpstan ^1.0, psalm ^5.0) - Apply PHP 8 code style (nullable types syntax) - Remove obsolete PedroTroller/single_line_comment fixer - Bump version to 2.0-dev Note: PHP 8.4 tests skipped due to phpspec bug with Symfony Console 8 (see phpspec/phpspec#1503)
This was referenced Jan 19, 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.
The
add()method has been removed in Symfony 8.x.addCommands()has been available since long ago and can be used to be cross-version compatible.