Skip to content

Commit 6412642

Browse files
fix: Correct syntax error in AuthenticationGuard.php:getCredential() for substantial performance gains
Signed-off-by: Russ <[email protected]>
1 parent 908ff13 commit 6412642

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Guards/AuthenticationGuard.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public function getCredential(): ?CredentialEntityContract
9292
return $this->getImposter();
9393
}
9494

95-
if ($this->credential instanceof CredentialEntityContract) {
95+
if (!$this->credential instanceof CredentialEntityContract) {
9696
$updated = $this->findSession();
9797
$this->setCredential($updated);
9898
$this->pushState($updated);

0 commit comments

Comments
 (0)