Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ddfedd6

Browse files
committed
Merge branch '5.4' into 6.0
* 5.4: use the outermost wrapping DBAL connection [Console] Fix deprecation when description is null [Console] Escape % in command name & description from getDefault*() [FrameworkBundle] Fix XML cache config
2 parents 97152b3 + 56f40c9 commit ddfedd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DependencyInjection/AddConsoleCommandPass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public function process(ContainerBuilder $container)
107107
if (!$r->isSubclassOf(Command::class)) {
108108
throw new InvalidArgumentException(sprintf('The service "%s" tagged "%s" must be a subclass of "%s".', $id, 'console.command', Command::class));
109109
}
110-
$description = str_replace('%', '%%', $class::getDefaultDescription());
110+
$description = str_replace('%', '%%', $class::getDefaultDescription() ?? '');
111111
}
112112

113113
if ($description) {

0 commit comments

Comments
 (0)