Skip to content

Commit

Permalink
change toArray to toList
Browse files Browse the repository at this point in the history
  • Loading branch information
Iandenh committed Jul 18, 2017
1 parent f1bfd8b commit 461eecd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Collection/CollectionTrait.php
Expand Up @@ -226,7 +226,7 @@ public function median($matcher = null)
if ($matcher != null) { if ($matcher != null) {
$elements = $elements->extract($matcher); $elements = $elements->extract($matcher);
} }
$values = $elements->toArray(); $values = $elements->toList();
sort($values); sort($values);


if ($count % 2) { if ($count % 2) {
Expand Down

0 comments on commit 461eecd

Please sign in to comment.