8000 Fix fabbot Exception Messages Formatting · symfony/symfony@1c359b7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1c359b7

Browse files
Fix fabbot Exception Messages Formatting
1 parent a652612 commit 1c359b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/Messenger/HandleTrait.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ private function handle(object $message, array $stamps = []): mixed
4848
}
4949

5050
if (\count($handledStamps) > 1) {
51-
$handlers = implode(', ', array_map(fn (HandledStamp $stamp): string => \sprintf('"%s"', $stamp->getHandlerName()), $handledStamps));
51+
$handlers = implode('", "', array_map(fn (HandledStamp $stamp): string => $stamp->getHandlerName(), $handledStamps));
5252

53-
throw new LogicException(\sprintf('Message of type "%s" was handled multiple times. Only one handler is expected when using "%s::%s()", got %d: %s.', get_debug_type($envelope->getMessage()), static::class, __FUNCTION__, \count($handledStamps), $handlers));
53+
throw new LogicException(\sprintf('Message of type "%s" was handled multiple times. Only one handler is expected when using "%s::%s()", got %d: "%s".', get_debug_type($envelope->getMessage()), static::class, __FUNCTION__, \count($handledStamps), $handlers));
5454
}
5555

5656
return $handledStamps[0]->getResult();

0 commit comments

Comments
 (0)
0