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 215d287 commit c1cab89Copy full SHA for c1cab89
Cluster.php
@@ -240,7 +240,11 @@ public function __call($name, $args)
240
$client = $this->clients[0];
241
}
242
else {
243
- $client = $this->byHash($args[0]);
+ $hashKey = $args[0];
244
+ if (is_array($hashKey)) {
245
+ $hashKey = join('|', $hashKey);
246
+ }
247
+ $client = $this->byHash($hashKey);
248
249
// Ensure that current client is working on the same database as expected.
250
if ($client->getSelectedDb() != $this->selectedDb) {
0 commit comments