Skip to content

Commit 9f715f9

Browse files
committed
docs: add @var to tell PHPStan correct type
1 parent e34bfe8 commit 9f715f9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Models/UserModel.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ public function findByCredentials(array $credentials): ?User
204204
}
205205

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

0 commit comments

Comments
 (0)