Skip to content

Commit 817963d

Browse files
committed
bug #28013 [Messenger] Add missing typehint on chain sender (sroze)
This PR was merged into the 4.1 branch. Discussion ---------- [Messenger] Add missing typehint on chain sender | Q | A | ------------- | --- | Branch? | 4.1 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | ø | License | MIT | Doc PR | ø The typehint is part of the `SenderInterface`. Adding it was probably forgotten at some point. Commits ------- 22b2257 Add missing typehint on chain sender
2 parents b754fd5 + 22b2257 commit 817963d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Symfony/Component/Messenger/Transport/ChainSender.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
namespace Symfony\Component\Messenger\Transport;
1313

14+
use Symfony\Component\Messenger\Envelope;
15+
1416
/**
1517
* @author Tobias Schultze <http://tobion.de>
1618
*/
@@ -29,7 +31,7 @@ public function __construct(iterable $senders)
2931
/**
3032
* {@inheritdoc}
3133
*/
32-
public function send($message): void
34+
public function send(Envelope $message): void
3335
{
3436
foreach ($this->senders as $sender) {
3537
$sender->send($message);

0 commit comments

Comments
 (0)