Skip to content

[Console] Fix deprecation when description is null #46608

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

Merged

Conversation

HypeMC
Copy link
Contributor

@HypeMC HypeMC commented Jun 7, 2022

Q A
Branch? 5.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets -
License MIT
Doc PR -

Fixes str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated when getDefaultDescription() returns null, caused by #46574.

@@ -56,6 +56,7 @@ public function process(ContainerBuilder $container)
foreach ($commandServices as $id => $tags) {
$definition = $container->getDefinition($id);
$definition->addTag($this->noPreloadTag);
/** @var class-string<Command> $class */
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change looks unrelated and should be reverted.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

str_replace(): Passing null to parameter symfony#3 ($subject) of type array|string is deprecated
@HypeMC HypeMC force-pushed the fix-deprecation-when-description-is-null branch from ae00115 to 7a08b52 Compare June 7, 2022 04:48
@fabpot
Copy link
Member

fabpot commented Jun 7, 2022

Good catch, thanks @HypeMC.

@fabpot fabpot merged commit 2cbbec4 into symfony:5.4 Jun 7, 2022
@HypeMC HypeMC deleted the fix-deprecation-when-description-is-null branch June 7, 2022 06:14
@fabpot fabpot mentioned this pull request Jun 9, 2022
This was referenced Jun 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants