Skip to content

Commit

Permalink
Use throw_unless
Browse files Browse the repository at this point in the history
  • Loading branch information
francoism90 authored Oct 10, 2024
1 parent 39a81d2 commit 10cff80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Models/Concerns/WithQueryBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ trait WithQueryBuilder
{
public function bootWithQueryBuilder(): void
{
throw_if(! is_subclass_of($this->getModelClass(), Model::class));
throw_unless(is_subclass_of($this->getModelClass(), Model::class));

$this->authorize('viewAny', $this->getModelClass());
}
Expand Down

0 comments on commit 10cff80

Please sign in to comment.