Skip to content

Commit

Permalink
Small tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
stevebauman committed Apr 6, 2020
1 parent 45e47a5 commit 14f6287
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LdapUserRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public function findByCredentials(array $credentials = [])
}
}

if ($user = $query->first()) {
if (! is_null($user = $query->first())) {
event(new DiscoveredWithCredentials($user));

return $user;
Expand Down

0 comments on commit 14f6287

Please sign in to comment.