Commit 1ebc259
committed
minor #51311 [Messenger] helpful exception when requesting an AMQP queue that is not configured (dbu)
This PR was squashed before being merged into the 7.1 branch.
Discussion
----------
[Messenger] helpful exception when requesting an AMQP queue that is not configured
without this check, running `messenger:consume --queue=notexisting` gives an "undefined array key" PHP error with no helpful context at all.
| Q | A
| ------------- | ---
| Branch? | 6.4
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | -
| License | MIT
| Doc PR | -
just struggled a bit to figure out what the problem was, until i realized my typo in the queue name on the cli...
this could also be added to older versions of symfony as its not a new feature but a sanity check that replaces a PHP error with a meaningful exception. happy to adjust my pull request if you want me to.
Commits
-------
0d0749efcf [Messenger] helpful exception when requesting an AMQP queue that is not configured1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
510 | 510 | | |
511 | 511 | | |
512 | 512 | | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
513 | 516 | | |
514 | 517 | | |
515 | 518 | | |
| |||
0 commit comments