We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8345275 commit 23464e2Copy full SHA for 23464e2
src/DI/Helpers/ExchangesHelper.php
@@ -32,9 +32,12 @@ public function getConfigSchema(): Schema
32
'arguments' => Expect::array(),
33
'queueBindings' => Expect::arrayOf(
34
Expect::structure([
35
- 'routingKey' => Expect::arrayOf(
36
- Expect::string()
37
- )->default([''])->before(fn(string|array $input): array => (array)$input),
+ 'routingKey' => Expect::anyOf(
+ Expect::string(),
+ Expect::arrayOf(
38
+ Expect::string()
39
+ )
40
+ )->default([''])->castTo('array'),
41
'noWait' => Expect::bool(false),
42
43
])->castTo('array'),
0 commit comments