From 8e6fe816f8714e79136d978d0dcbec0762b85227 Mon Sep 17 00:00:00 2001 From: AIZAWA Hina Date: Mon, 24 Jun 2024 01:13:04 +0900 Subject: [PATCH] Fix phpstan configuration --- phpstan.neon | 3 ++- src/Totp.php | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) 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'); }