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 f82568a commit a944bbfCopy full SHA for a944bbf
ConnectionManager/Extra/Multiple/ConnectionManagerSelective.php
@@ -40,11 +40,11 @@ public function addConnectionManagerFor($connectionManager, $targetHost=self::MA
40
$id = key($this->targets);
41
42
// sort array by priority
43
- $targets &= $this->targets;
+ $targets =& $this->targets;
44
uksort($this->targets, function ($a, $b) use ($targets) {
45
$pa = $targets[$a]['priority'];
46
$pb = $targets[$b]['priority'];
47
- return ($pa < $pb ? -1 : ($pa > $pb ? 1 : ($b - $a)));
+ return ($pa < $pb ? -1 : ($pa > $pb ? 1 : ($a - $b)));
48
});
49
50
return $id;
0 commit comments