-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
[Console] Add deprecation message for non-int statusCode #33775
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
0be7fd4 to
67d8227
Compare
|
We need to fix the deprecations in this PR (as tests won't pass). |
|
Don't miss updating the corresponding |
67d8227 to
413683b
Compare
413683b to
78d7da2
Compare
| * {@inheritdoc} | ||
| */ | ||
| protected function execute(InputInterface $input, OutputInterface $output) | ||
| protected function execute(InputInterface $input, OutputInterface $output): int |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The ContainerDebugCommand is marked as @internal and all subclasses already introduced an int return type-hint for execute(). So I think it is save to add a return type here as well.
603ad9e to
3647ef5
Compare
…DebugCommand (jschaedl) This PR was merged into the 3.4 branch. Discussion ---------- [FrameworkBundle] Fix wrong returned status code in ConfigDebugCommand | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tickets | Fix #33747<!-- prefix each issue number with "Fix #", if any --> | License | MIT | Doc PR | - This is a follow-up PR caused by #33775 (comment) Commits ------- 9b5ced2 [FrameworkBundle] Fix wrong returned status code in ConfigDebugCommand
…urning null - added deprecation message for non-int return value in Command::execute() - fixed all core commands to return proper int values - added proper return type-hint to Command::execute() method in all core Commands
3647ef5 to
98c4f6a
Compare
|
Thank you @jschaedl. |
…de (jschaedl) This PR was merged into the 4.4 branch. Discussion ---------- [Console] Add deprecation message for non-int statusCode | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | no | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | yes <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tickets | Fix #33747 <!-- prefix each issue number with "Fix #", if any --> | License | MIT | Doc PR | - ### What was done: - [x] added deprecation message for non-int return value in Command::execute() - [x] fixed all core commands to return proper int values - [x] added proper return type-hint to Command::execute() method in all core Commands Commits ------- 98c4f6a [Console] Command::execute() should always return int - deprecate returning null
What was done: