Skip to content
This repository was archived by the owner on Jul 24, 2023. It is now read-only.

Commit 68bb780

Browse files
committed
Ensure variable exists and always make sure to triple check all PR's 😅
#897
1 parent 066715e commit 68bb780

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Auth/DatabaseUserProvider.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,12 @@ public function updateRememberToken(Authenticatable $user, $token)
9191
*/
9292
public function retrieveByCredentials(array $credentials)
9393
{
94+
$user = null;
95+
9496
try {
9597
$user = Resolver::byCredentials($credentials);
9698
} catch (BindException $e) {
97-
if (!$this->isFallingBack()) {
99+
if (! $this->isFallingBack()) {
98100
throw $e;
99101
}
100102
}

0 commit comments

Comments
 (0)