Skip to content

Commit f654c23

Browse files
committed
typo
1 parent b463196 commit f654c23

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ServerChallenge.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,18 +184,18 @@ public function HashPassword(string $password, string $saltHashAlgo)
184184
{
185185
$supported = hash_algos();
186186
if (!in_array($this->passwordHashAlgo, $supported)) {
187-
throw new MonetException("The password hash algorith '{$this->passwordHashAlgo}' which was requested "
187+
throw new MonetException("The password hash algorithm '{$this->passwordHashAlgo}' which was requested "
188188
."by the server, is not supported by PHP.");
189189
}
190190

191191
if (!in_array($saltHashAlgo, $supported)) {
192-
throw new MonetException("The salt hash algorith '{$this->passwordHashAlgo}', which was specified "
192+
throw new MonetException("The salt hash algorithm '{$this->passwordHashAlgo}', which was specified "
193193
."in a constructor parameter of the 'Connection' class, is not supported by PHP. "
194194
."The following algorithms are supported by it: ".implode(', ', $supported));
195195
}
196196

197197
if (!in_array($saltHashAlgo, $this->supportedSaltHashes)) {
198-
throw new MonetException("The salt hash algorith '{$this->passwordHashAlgo}', which was specified "
198+
throw new MonetException("The salt hash algorithm '{$this->passwordHashAlgo}', which was specified "
199199
."in a constructor parameter of the 'Connection' class, is not supported by the server. "
200200
."The following algorithms are supported by it: ".implode(', ', $this->supportedSaltHashes));
201201
}

0 commit comments

Comments
 (0)