Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cbb587a

Browse files
committed
bug #27196 [Messenger] Fix AMQP Transport (yceruto)
This PR was merged into the 4.1 branch. Discussion ---------- [Messenger] Fix AMQP Transport | Q | A | ------------- | --- | Branch? | 4.1 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #27164 | License | MIT | Doc PR | - - [x] Fix typo - [x] Fix create `Connection` instance - [ ] Add test Commits ------- b8a4d5a Fix AmqpTransport
2 parents 247cbb0 + b8a4d5a commit cbb587a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/Messenger/Transport/AmqpExt/AmqpTransport.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function __construct(EncoderInterface $encoder, DecoderInterface $decoder
4343
*/
4444
public function receive(callable $handler): void
4545
{
46-
($this->receiver ?? $this->getReceiver())->receive($hander);
46+
($this->receiver ?? $this->getReceiver())->receive($handler);
4747
}
4848

4949
/**
@@ -74,6 +74,6 @@ private function getSender()
7474

7575
private function getConnection()
7676
{
77-
return $this->connection = new Connection($this->dsn, $this->options, $this->debug);
77+
return $this->connection = Connection::fromDsn($this->dsn, $this->options, $this->debug);
7878
}
7979
}

0 commit comments

Comments
 (0)