Skip to content

Commit

Permalink
returning zemit model instead of model interface
Browse files Browse the repository at this point in the history
  • Loading branch information
jturbide committed Feb 24, 2024
1 parent e0def7e commit 03489dc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Identity.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
use Zemit\Models\Interfaces\SessionInterface;
use Zemit\Models\Interfaces\UserInterface;
use Zemit\Models\User;
use Zemit\Mvc\Model;
use Zemit\Mvc\Model\Behavior\Security as SecurityBehavior;
use Zemit\Support\ModelsMap;
use Zemit\Support\Options\Options;
Expand Down Expand Up @@ -949,7 +950,7 @@ public function getJwtToken(string $id, array $data = [], array $options = []):
/**
* Get the User from the database using the ID
*/
public function findUserById(int $id): ?ModelInterface
public function findUserById(int $id): ?Model
{
/** @var User $userClass */
$userClass = $this->getUserClass();
Expand All @@ -963,7 +964,7 @@ public function findUserById(int $id): ?ModelInterface
/**
* Get the user from the database using the username or email
*/
public function findUser(string $string): ?ModelInterface
public function findUser(string $string): ?Model
{
/** @var User $userClass */
$userClass = $this->getUserClass();
Expand Down

0 comments on commit 03489dc

Please sign in to comment.