$defaultAlgorithm = $manager->getDefaultAlgorithm();
if (\get_class($algorithm) !== \get_class($defaultAlgorithm) ||
- $algorithm->needs_rehash($hash)
+ $algorithm->needsRehash($hash)
) {
$userEditor = new UserEditor($this);
$userEditor->update([
/**
* Returns whether the given $hash still matches the configured security parameters.
*/
- public function needs_rehash(string $hash): bool;
+ public function needsRehash(string $hash): bool;
}
/**
* @inheritDoc
*/
- public function needs_rehash(string $hash): bool {
+ public function needsRehash(string $hash): bool {
return \password_needs_rehash($hash, \PASSWORD_BCRYPT, self::OPTIONS);
}
}
/**
* @inheritDoc
*/
- public function needs_rehash(string $hash): bool {
+ public function needsRehash(string $hash): bool {
return self::isDifferentBlowfish($hash);
}
/**
* @inheritDoc
*/
- public function needs_rehash(string $hash): bool {
+ public function needsRehash(string $hash): bool {
return false;
}
}