Skip to content

Commit b98e7a3

Browse files
committed
Bugfix: fix incorrect type-check
1 parent 357dd64 commit b98e7a3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Auth/Source/Ldap.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,7 @@ protected function loginSasl(string $username, #[\SensitiveParameter]string $pas
129129
}
130130

131131
/* Verify the credentials */
132-
if (!is_null($sasl_args)) {
133-
Assert::isArray($sasl_args);
134-
132+
if (!empty($sasl_args)) {
135133
$this->connector->saslBind(
136134
$dn,
137135
$password,

0 commit comments

Comments
 (0)