Skip to content

Commit

Permalink
fix: Correct syntax error in AuthenticationGuard.php:getCredential() …
Browse files Browse the repository at this point in the history
…for substantial performance gains

Signed-off-by: Russ <[email protected]>
  • Loading branch information
ComputerTinker authored Apr 4, 2024
1 parent 908ff13 commit 6412642
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Guards/AuthenticationGuard.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6412642

Please sign in to comment.