correction phpstan
Some checks reported warnings
Cadoles/hydra-sql/pipeline/pr-develop This commit is unstable

This commit is contained in:
2023-12-14 10:25:22 +01:00
parent 341a1ecd87
commit b5de7ee873
2 changed files with 4 additions and 7 deletions

View File

@ -54,7 +54,7 @@ class PasswordEncoder implements LegacyPasswordHasherInterface
return true;
}
foreach(hash_algos() as $algo) {
foreach (hash_algos() as $algo) {
if (hash_equals($hashedPassword, hash($algo, $completedPassword))) {
return true;
}
@ -76,9 +76,6 @@ class PasswordEncoder implements LegacyPasswordHasherInterface
/**
* Retourne la string à hasher en fonction du pattern indiqué
*
* @param mixed $plainTextPassword
* @param mixed $salt
*
* @return string
*/
protected function getPasswordToHash($plainTextPassword, $salt)