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 cbb587a

Browse filesBrowse 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
Copy full SHA for cbb587a

File tree

1 file changed

+2
-2
lines changed
Filter options

1 file changed

+2
-2
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Messenger/Transport/AmqpExt/AmqpTransport.php
+2-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.