From 93e3c71425703db0c25f5af3136cdf8533024b86 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Dadashi Date: Tue, 27 Aug 2024 18:36:40 +0330 Subject: [PATCH] chore: fix phpstand error for `$credentials` --- src/Auth.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Auth.php b/src/Auth.php index 0b12e3567..d1b000e35 100644 --- a/src/Auth.php +++ b/src/Auth.php @@ -24,17 +24,17 @@ /** * Facade for Authentication * - * @method Result attempt(array $credentials) - * @method Result check(array $credentials) - * @method bool checkAction(string $token, string $type) [Session] - * @method void forget(?User $user = null) [Session] + * @method Result attempt(array{email?: string, username?: string, password?: string, token?: string} $credentials) + * @method Result check(array{email?: string, username?: string, password?: string, token?: string} $credentials) + * @method bool checkAction(string $token, string $type) [Session] + * @method void forget(?User $user = null) [Session] * @method User|null getUser() * @method bool loggedIn() * @method bool login(User $user) * @method void loginById($userId) * @method bool logout() * @method void recordActiveDate() - * @method $this remember(bool $shouldRemember = true) [Session] + * @method $this remember(bool $shouldRemember = true) [Session] */ class Auth {