Skip to content

Commit a776a7e

Browse files
committed
Fix signature
1 parent 5b825f4 commit a776a7e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/Connector/Ldap.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public function bind(?string $username, #[\SensitiveParameter]?string $password)
9999
try {
100100
$this->connection->bind($username, strval($password));
101101
} catch (InvalidCredentialsException $e) {
102-
throw new Error\Error($this->resolveBindException($e));
102+
throw new Error\Error($this->resolveBindException());
103103
}
104104

105105
if ($username === null) {
@@ -128,7 +128,7 @@ public function saslBind(
128128
try {
129129
$this->connection->saslBind($username, strval($password), $mech, $realm, $authcId, $authzId, $props);
130130
} catch (InvalidCredentialsException $e) {
131-
throw new Error\Error($this->resolveBindException($e));
131+
throw new Error\Error($this->resolveBindException());
132132
}
133133

134134
if ($username === null) {
@@ -235,10 +235,9 @@ public function searchForMultiple(
235235
/**
236236
* Resolve the message to a UI exception
237237
*
238-
* @param InvalidCredentialsException $e
239238
* @return string
240239
*/
241-
protected function resolveBindException(InvalidCredentialsException $e): string
240+
protected function resolveBindException(): string
242241
{
243242
return self::ERR_WRONG_PASS;
244243
}

0 commit comments

Comments
 (0)