Corrected return types in Log10 methods
This commit is contained in:
parent
6835d189d0
commit
798cd684a5
|
@ -16,7 +16,7 @@ namespace Zxcvbn\Classes\Matchers;
|
||||||
* @param array $userInputs
|
* @param array $userInputs
|
||||||
* @return Bruteforce[]
|
* @return Bruteforce[]
|
||||||
*/
|
*/
|
||||||
public static function match($password, array $userInputs = []): array
|
public static function match(string $password, array $userInputs = []): array
|
||||||
{
|
{
|
||||||
// Matches entire string.
|
// Matches entire string.
|
||||||
$match = new static($password, 0, mb_strlen($password) - 1, $password);
|
$match = new static($password, 0, mb_strlen($password) - 1, $password);
|
||||||
|
|
|
@ -14,15 +14,15 @@
|
||||||
*
|
*
|
||||||
* @return array Array of Match objects
|
* @return array Array of Match objects
|
||||||
*/
|
*/
|
||||||
public static function match($password, array $userInputs = []);
|
public static function match(string $password, array $userInputs = []): array;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return integer
|
* @return integer
|
||||||
*/
|
*/
|
||||||
public function getGuesses();
|
public function getGuesses(): int;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return float
|
* @return float
|
||||||
*/
|
*/
|
||||||
public function getGuessesLog10();
|
public function getGuessesLog10(): float;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue