From 64126427c8cc744823dba96030b8249814f2d060 Mon Sep 17 00:00:00 2001 From: Russ Date: Thu, 4 Apr 2024 08:45:42 -0400 Subject: [PATCH] fix: Correct syntax error in AuthenticationGuard.php:getCredential() for substantial performance gains Signed-off-by: Russ --- src/Guards/AuthenticationGuard.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Guards/AuthenticationGuard.php b/src/Guards/AuthenticationGuard.php index 23f8c7a..935cad2 100644 --- a/src/Guards/AuthenticationGuard.php +++ b/src/Guards/AuthenticationGuard.php @@ -92,7 +92,7 @@ public function getCredential(): ?CredentialEntityContract return $this->getImposter(); } - if ($this->credential instanceof CredentialEntityContract) { + if (!$this->credential instanceof CredentialEntityContract) { $updated = $this->findSession(); $this->setCredential($updated); $this->pushState($updated);