/**
* Check if the password requires rehashing
*
* @param string $hash The password hash to check
*
* @return boolean
*
* @since 4.0.0
*/
public function checkIfRehashNeeded(string $hash) : bool
{
return password_needs_rehash($hash, PASSWORD_BCRYPT);
}