diff --git a/src/Illuminate/Support/Collection.php b/src/Illuminate/Support/Collection.php index 0ff887004c78..ce60a66f26a9 100644 --- a/src/Illuminate/Support/Collection.php +++ b/src/Illuminate/Support/Collection.php @@ -884,7 +884,7 @@ public function mapToDictionary(callable $callback) { $dictionary = []; - $this->each(function ($item, $key) use(&$dictionary, $callback) { + $this->each(function ($item, $key) use (&$dictionary, $callback) { $pair = $callback($item, $key); $key = key($pair); $value = reset($pair);