Skip to content

Commit

Permalink
Initialize empty array for $values
Browse files Browse the repository at this point in the history
  • Loading branch information
damiani committed Sep 20, 2017
1 parent e80f333 commit 0c024f0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Illuminate/Support/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -1340,6 +1340,7 @@ public function sort(callable $callback = null)
*/
public function sortBy($callback, $options = SORT_REGULAR, $descending = false)
{
$values = [];
$results = [];

$callback = $this->valueRetriever($callback);
Expand Down

0 comments on commit 0c024f0

Please sign in to comment.