Skip to content

Commit

Permalink
signing commit
Browse files Browse the repository at this point in the history
  • Loading branch information
MrFrost-Nv27 committed May 3, 2024
1 parent b9d0441 commit f9d5dd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Models/UserModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ public function addToDefaultGroup(User $user): void
public function fake(Generator &$faker): User
{
if (! is_a($this->returnType, User::class, true)) {
throw new LogicException('Model Return type must be a subclass of ' . User::class);
throw new LogicException('Return type must be a subclass of ' . User::class);
}

return new $this->returnType([
Expand Down Expand Up @@ -232,7 +232,7 @@ public function findByCredentials(array $credentials): ?User
unset($data['password_hash']);

if (! is_a($this->returnType, User::class, true)) {
throw new LogicException('Model Return type must be a subclass of ' . User::class);
throw new LogicException('Return type must be a subclass of ' . User::class);
}

$user = new $this->returnType($data);
Expand Down

0 comments on commit f9d5dd1

Please sign in to comment.