Skip to content

Commit 7249a9c

Browse files
authored
Fix create() args
1 parent 6b31ad8 commit 7249a9c

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
@@ -524,7 +524,7 @@ public static function all()
524524
*/
525525
public static function create(array $attributes = [])
526526
{
527-
return tap(self::make(static::$client::create(func_get_args())), function ($model) {
527+
return tap(self::make(call_user_func_array([static::$client, 'create'], func_get_args())), function ($model) {
528528
$model->exists = true;
529529
});
530530
}

0 commit comments

Comments
 (0)