We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c0b119 commit 768e34cCopy full SHA for 768e34c
Messenger/MessageHandler.php
@@ -12,6 +12,7 @@
12
namespace Symfony\Component\Notifier\Messenger;
13
14
use Symfony\Component\Notifier\Message\MessageInterface;
15
+use Symfony\Component\Notifier\Message\SentMessage;
16
use Symfony\Component\Notifier\Transport\TransportInterface;
17
18
/**
@@ -28,8 +29,8 @@ public function __construct(TransportInterface $transport)
28
29
$this->transport = $transport;
30
}
31
- public function __invoke(MessageInterface $message)
32
+ public function __invoke(MessageInterface $message): ?SentMessage
33
{
- $this->transport->send($message);
34
+ return $this->transport->send($message);
35
36
0 commit comments