Skip to content

Conversation

@rsebboc
Copy link

@rsebboc rsebboc commented Dec 8, 2025

Overview

This pull request make sure users don't get a deprecated message if they are using a newer version of Symfony Console:

  • Fixes a bug
  • Adds a feature
  • Breaks backwards compatibility
  • Has tests that cover changes
  • Adds or fixes documentation

Summary

Added a check to see if the new addCommand method exists, otherwise fallback to the add method

Description

The add method will be removed in symfony/console 8.0

@pixelbrackets
Copy link
Contributor

pixelbrackets commented Dec 30, 2025

Added a check to see if the new addCommand method exists, otherwise fallback to the add method

God catch, Symfony 6 does not have a addCommand method yet, Symfony 7 triggers the deprecation warning to use it tough.

The CI backwards check is red for some other reason, the code is fine.

@rsebboc
Copy link
Author

rsebboc commented Jan 13, 2026

CI Fixed in #1185

@rsebboc rsebboc closed this Jan 13, 2026
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.

2 participants