Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5855d11

Browse filesBrowse files
committed
[Notifier] Return SentMessage from the Notifier message handler
1 parent ce8f8a5 commit 5855d11
Copy full SHA for 5855d11

File tree

1 file changed

+3
-2
lines changed
Filter options

1 file changed

+3
-2
lines changed

‎src/Symfony/Component/Notifier/Messenger/MessageHandler.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Notifier/Messenger/MessageHandler.php
+3-2Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
namespace Symfony\Component\Notifier\Messenger;
1313

1414
use Symfony\Component\Notifier\Message\MessageInterface;
15+
use Symfony\Component\Notifier\Message\SentMessage;
1516
use Symfony\Component\Notifier\Transport\TransportInterface;
1617

1718
/**
@@ -28,8 +29,8 @@ public function __construct(TransportInterface $transport)
2829
$this->transport = $transport;
2930
}
3031

31-
public function __invoke(MessageInterface $message)
32+
public function __invoke(MessageInterface $message): ?SentMessage
3233
{
33-
$this->transport->send($message);
34+
return $this->transport->send($message);
3435
}
3536
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.