Skip to content

Commit a0295f1

Browse files
authored
Also fix args for all method
1 parent 7249a9c commit a0295f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Whisperer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ public static function findOrFail($identifier)
511511

512512
public static function all()
513513
{
514-
return (new self)->newCollection(collect(static::$client::all(func_get_args()))->map(function ($result) {
514+
return (new self)->newCollection(collect(call_user_func_array([static::$client, 'all'], func_get_args()))->map(function ($result) {
515515
return (new static)->forceFill($result);
516516
})->toArray());
517517
}

0 commit comments

Comments
 (0)