Skip to content

Commit

Permalink
php 7.3 support
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Dec 7, 2021
1 parent c16367a commit c36eeb2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Illuminate/Collections/Arr.php
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,9 @@ public static function where($array, callable $callback)
*/
public static function whereNotNull($array)
{
return static::where($array, fn ($x) => ! is_null($x));
return static::where($array, function ($value) {
return ! is_null($value);
});
}

/**
Expand Down

0 comments on commit c36eeb2

Please sign in to comment.