Skip to content

Commit cf6c25d

Browse files
jan-pintrfabpot
andauthored
remove empty usage on message creation
Co-authored-by: Fabien Potencier <fabien@potencier.org>
1 parent 94d8dc2 commit cf6c25d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Scheduler/DependencyInjection/AddScheduleMessengerPass.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function process(ContainerBuilder $container): void
6060
$attribute = ($container->getReflectionClass($serviceDefinition->getClass())->getAttributes(AsCommand::class)[0] ?? null)?->newInstance();
6161
$commandName = $attribute?->name ?? $serviceDefinition->getClass()::getDefaultName();
6262

63-
$message = new Definition(RunCommandMessage::class, [$commandName.(empty($tagAttributes['arguments']) ? '' : " {$tagAttributes['arguments']}")]);
63+
$message = new Definition(RunCommandMessage::class, [$commandName.($tagAttributes['arguments'] ? " {$tagAttributes['arguments']}" : '')]);
6464
} else {
6565
$message = new Definition(ServiceCallMessage::class, [$serviceId, $tagAttributes['method'] ?? '__invoke', (array) ($tagAttributes['arguments'] ?? [])]);
6666
}

0 commit comments

Comments
 (0)