Skip to content

Commit

Permalink
Use ... token for var-length args
Browse files Browse the repository at this point in the history
  • Loading branch information
tomlankhorst committed May 20, 2019
1 parent 7d565d3 commit 574f5e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/M6Web/Component/RedisMock/RedisMock.php
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ public function sdiff($key)
foreach ($keys as $key) {
$result[] = $this->smembers($key);
}
$result = array_values(call_user_func_array('array_diff', $result));
$result = array_values(array_diff(...$result));

$this->restorePipeline();

Expand Down

0 comments on commit 574f5e7

Please sign in to comment.