Skip to content

Commit 5b825f4

Browse files
committed
s/ResolveBindError/resolveBindException
1 parent 06b01d9 commit 5b825f4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Connector/Ldap.php

Lines changed: 3 additions & 3 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->resolveBindError($e));
102+
throw new Error\Error($this->resolveBindException($e));
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->resolveBindError($e));
131+
throw new Error\Error($this->resolveBindException($e));
132132
}
133133

134134
if ($username === null) {
@@ -238,7 +238,7 @@ public function searchForMultiple(
238238
* @param InvalidCredentialsException $e
239239
* @return string
240240
*/
241-
protected function resolveBindError(InvalidCredentialsException $e): string
241+
protected function resolveBindException(InvalidCredentialsException $e): string
242242
{
243243
return self::ERR_WRONG_PASS;
244244
}

0 commit comments

Comments
 (0)