Skip to content

Commit

Permalink
docs: add @var to tell PHPStan correct type
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Dec 3, 2023
1 parent e34bfe8 commit 9f715f9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Models/UserModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ public function findByCredentials(array $credentials): ?User
}

if ($email !== null) {
/** @var array<string, int|string|null>|null $data */
$data = $this->select(
sprintf('%1$s.*, %2$s.secret as email, %2$s.secret2 as password_hash', $this->table, $this->tables['identities'])
)
Expand Down

0 comments on commit 9f715f9

Please sign in to comment.