Skip to content

Commit 70a90e6

Browse files
committed
all() should be static
1 parent 8ec8fde commit 70a90e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Whisperer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -508,9 +508,9 @@ public static function findOrFail($identifier)
508508
return $model;
509509
}
510510

511-
public function all()
511+
public static function all()
512512
{
513-
return $this->newCollection(collect(static::$client::all())->map(function ($result) {
513+
return (new self)->newCollection(collect(static::$client::all())->map(function ($result) {
514514
return (new static)->forceFill($attributes);
515515
})->toArray());
516516
}

0 commit comments

Comments
 (0)