The variable $badHash does not exist. Did you forget to declare it?
This check marks access to variables or properties that have not been declared yet. While PHP
has no explicit notion of declaring a variable, accessing it before a value is assigned
to it is most likely a bug.
The variable $count does not exist. Did you forget to declare it?
This check marks access to variables or properties that have not been declared yet. While PHP
has no explicit notion of declaring a variable, accessing it before a value is assigned
to it is most likely a bug.
Loading history...
37
if (
38
$passwordHash === $badHash
39
&& $count >= $this->minimumThreshold
40
) {
41
throw new PasswordException('Password has been pwned.');
42
}
43
}
44
45
return true;
46
}
47
48
/**
49
* Iterates over and yields each blacklisted password
50
*
51
* @return Generator
52
*/
53
private function getBlacklistPasswords(): Generator
This check marks access to variables or properties that have not been declared yet. While PHP has no explicit notion of declaring a variable, accessing it before a value is assigned to it is most likely a bug.