10000 Merge branch '6.0' into 6.1 · symfony/console@13a95a5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 13a95a5

Browse files
committed
Merge branch '6.0' into 6.1
* 6.0: 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 f112d38 + ddfedd6 commit 13a95a5

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)
0