Corrected return types in Log10 methods

This commit is contained in:
Netkas 2021-09-16 18:05:35 -04:00
parent 6835d189d0
commit 798cd684a5
2 changed files with 4 additions and 4 deletions

View File

@ -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);

View File

@ -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;
} }