Skip to content

[Console] Fix deprecation when description is null#46608

Merged
fabpot merged 1 commit intosymfony:5.4from
HypeMC:fix-deprecation-when-description-is-null
Jun 7, 2022
Merged

[Console] Fix deprecation when description is null#46608
fabpot merged 1 commit intosymfony:5.4from
HypeMC:fix-deprecation-when-description-is-null

Conversation

@HypeMC
Copy link
Copy Markdown
Member

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

foreach ($commandServices as $id => $tags) {
$definition = $container->getDefinition($id);
$definition->addTag($this->noPreloadTag);
/** @var class-string<Command> $class */
Copy link
Copy Markdown
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
Copy Markdown
Member 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
Copy Markdown
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