From b9d044147014f09f65fd44c8725295a78fb63909 Mon Sep 17 00:00:00 2001 From: Nova Adi Saputra <70581926+MrFrost-Nv27@users.noreply.github.com> Date: Thu, 2 May 2024 22:08:47 +0000 Subject: [PATCH] change comment and signing commit --- src/Models/UserModel.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Models/UserModel.php b/src/Models/UserModel.php index f576bbc45..c9c9bce47 100644 --- a/src/Models/UserModel.php +++ b/src/Models/UserModel.php @@ -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('Return type must be a subclass of ' . User::class); + throw new LogicException('Model Return type must be a subclass of ' . User::class); } return new $this->returnType([ @@ -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('Return type must be a subclass of ' . User::class); + throw new LogicException('Model Return type must be a subclass of ' . User::class); } $user = new $this->returnType($data);