8000 Update fabbot · symfony/symfony@bdaa434 · GitHub
[go: up one dir, main page]

Skip to content

Commit bdaa434

Browse files
Update fabbot
1 parent 4806734 commit bdaa434

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Symfony/Component/Messenger/HandleTrait.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ trait HandleTrait
3030
* This behavior is useful for both synchronous command & query buses,
3131
* the last one usually returning the handler result.
3232
*
33-
* @param object|Envelope $message The message or the message pre-wrapped in an envelope
34-
* @param StampInterface[] $stamps Stamps to be set on the Envelope which are used to control middlewares behaviors
33+
* @param object|Envelope $message The message or the message pre-wrapped in an envelope
34+
* @param StampInterface[] $stamps Stamps to be set on the Envelope which are used to control middlewares behaviors
3535
*/
3636
private function handle(object $message, array $stamps = []): mixed
3737
{
@@ -52,7 +52,7 @@ private function handle(object $message, array $stamps = []): mixed
5252
return sprintf('"%s"', $stamp->getHandlerName());
5353
}, $handledStamps));
5454

55-
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));
55+
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));
5656
}
5757

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

src/Symfony/Component/Messenger/MessageBusInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ interface MessageBusInterface
2222
* Dispatches the given message.
2323
*
2424
* @param object|Envelope $message The message or the message pre-wrapped in an envelope
25-
* @param StampInterface[] $stamps Stamps set on the Envelope which are used to control middlewares behaviors
25+
* @param StampInterface[] $stamps Stamps set on the Envelope which are used to control middlewares behaviors
2626
*/
2727
public function dispatch(object $message, array $stamps = []): Envelope;
2828
}

0 commit comments

Comments
 (0)
0