Skip to content

Commit 99889eb

Browse files
Merge branch '8.x'
2 parents fea7462 + 2bdc985 commit 99889eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Collection.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1128,7 +1128,7 @@ public function sortDesc($options = SORT_REGULAR)
11281128
*/
11291129
public function sortBy($callback, $options = SORT_REGULAR, $descending = false)
11301130
{
1131-
if (is_array($callback)) {
1131+
if (is_array($callback) && ! is_callable($callback)) {
11321132
return $this->sortByMany($callback);
11331133
}
11341134

0 commit comments

Comments
 (0)