From bd2cdd82d161cae137e7b78ff2d0d061ca74a416 Mon Sep 17 00:00:00 2001 From: Russell Kenny Date: Tue, 9 Apr 2024 16:23:17 -0400 Subject: [PATCH] Update PHP syntax to fix phpstan, psalm, phpcs, and rector tests --- src/Guards/AuthenticationGuard.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Guards/AuthenticationGuard.php b/src/Guards/AuthenticationGuard.php index a5dc698..e2ab7f6 100644 --- a/src/Guards/AuthenticationGuard.php +++ b/src/Guards/AuthenticationGuard.php @@ -32,9 +32,6 @@ final class AuthenticationGuard extends GuardAbstract implements AuthenticationG */ protected const TELESCOPE = '\Laravel\Telescope\Telescope'; - /** - * @var bool - */ private bool $didCredRefresh = false; public function find(): ?CredentialEntityContract @@ -97,7 +94,7 @@ public function getCredential(): ?CredentialEntityContract return $this->getImposter(); } - if (!empty($this->didCredRefresh)) { + if ($this->didCredRefresh) { return $this->credential; }