Skip to content

Commit

Permalink
Merge pull request #351 from lptn/349-add-throws
Browse files Browse the repository at this point in the history
Add missing @throws
  • Loading branch information
lptn authored Nov 4, 2023
2 parents f27cb2b + 0c5545e commit 2ada8c7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions stubs/Database/Eloquent/Builder.stubphp
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,8 @@ class Builder implements BuilderContract
* @param T $id
* @param list<non-empty-string> $columns
* @psalm-return (T is (array|\Illuminate\Contracts\Support\Arrayable) ? \Illuminate\Database\Eloquent\Collection<int, TModel> : TModel)
*
* @throws \Illuminate\Database\Eloquent\ModelNotFoundException
*/
public function findOrFail($id, $columns = ['*']) {}

Expand Down

0 comments on commit 2ada8c7

Please sign in to comment.