Skip to content

Commit 4435d36

Browse files
authored
fix: issue #64 - undefined array key 'routingKeys' leads to TypeError in unpacking operator (only arrays can be unpacked) (#65)
1 parent 96a55a9 commit 4435d36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Exchange/ExchangeFactory.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ private function create(string $name): IExchange
7979
$queueBindings[] = new QueueBinding(
8080
$queue,
8181
$queueBinding['routingKey'],
82-
...$queueBinding['routingKeys']
82+
...$queueBinding['routingKeys'] ?? []
8383
);
8484
}
8585
}

0 commit comments

Comments
 (0)