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

Commit 0fc9828

Browse files
committed
setLdapUser should be nullable to fix #270
This issue happens when fallback connection is used Together with the HasLdapUser trait
1 parent 7d7492b commit 0fc9828

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Traits/HasLdapUser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ trait HasLdapUser
1818
*
1919
* @param User $user
2020
*/
21-
public function setLdapUser(User $user)
21+
public function setLdapUser(User $user = null)
2222
{
2323
$this->ldap = $user;
2424
}

0 commit comments

Comments
 (0)