diff --git a/phpstan.neon b/phpstan.neon index 8605d07..7c3db0a 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -1,7 +1,8 @@ parameters: - checkMissingIterableValueType: false level: max paths: - src - test treatPhpDocTypesAsCertain: false + ignoreErrors: + - identifier: missingType.iterableValue diff --git a/src/Totp.php b/src/Totp.php index f6443a6..59d3c07 100644 --- a/src/Totp.php +++ b/src/Totp.php @@ -42,7 +42,6 @@ class Totp */ public static function generateKey(int $sizeBits = self::DEFAULT_KEY_SIZE_BITS): string { - // @phpstan-ignore-next-line if ($sizeBits < 8 || $sizeBits % 8 !== 0) { throw new Exception('$sizeBits is not multiples of 8'); }