Skip to content

Commit f35c8a9

Browse files
authored
Merge pull request #3 from bckp/feature-routing-key-cast
Add: routingKeys can be now string or integer
2 parents 44ba3e0 + bcba388 commit f35c8a9

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
},
1919
"authors": [
2020
{
21-
"name": "Pavel Janda"
21+
"name": "Radovan Kepák"
2222
},
2323
{
24-
"name": "Radovan Kepák"
24+
"name": "Pavel Janda"
2525
}
2626
],
2727
"autoload": {

src/DI/Helpers/ExchangesHelper.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ public function getExchangeSchema(): Schema
4141
'queueBindings' => Expect::arrayOf(
4242
Expect::structure([
4343
'routingKey' => Expect::anyOf(
44-
Expect::string(),
44+
Expect::type('string|int')->castTo('string'),
4545
Expect::arrayOf(
46-
Expect::string()
47-
)
46+
Expect::type('string|int')->castTo('string'),
47+
),
4848
)->default([''])->castTo('array'),
4949
'noWait' => Expect::bool(false),
5050
'arguments' => Expect::array(),

0 commit comments

Comments
 (0)