From 125c4844a8b789e9df161fa79e7c09b9bff1b281 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Sun, 27 Mar 2022 03:27:48 +0000 Subject: [PATCH 1/2] Keep PHPStan ignored errors up-to-date --- phpstan.neon.dist | 1 - 1 file changed, 1 deletion(-) diff --git a/phpstan.neon.dist b/phpstan.neon.dist index b602959..b8e8e4f 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -4,7 +4,6 @@ parameters: paths: - ./src checkMissingIterableValueType: false - reportUnmatchedIgnoredErrors: false bootstrapFiles: - ./tests/static-analysis/stubs.php ignoreErrors: From 97553d31221c4a7ec396552564cad4d82994786f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Sun, 27 Mar 2022 03:30:24 +0000 Subject: [PATCH 2/2] Remove resolved and ignored PHPStan errors --- phpstan.neon.dist | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/phpstan.neon.dist b/phpstan.neon.dist index b8e8e4f..8b57bf0 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -7,18 +7,6 @@ parameters: bootstrapFiles: - ./tests/static-analysis/stubs.php ignoreErrors: - - - message: '#^Call to function is_int\(\) with float will always evaluate to false\.$#' - count: 1 - path: ./src/Converter/Time/PhpTimeConverter.php - - - message: '#^Unreachable statement - code above always terminates\.$#' - count: 1 - path: ./src/Converter/Time/PhpTimeConverter.php - - - message: '#^Comparison operation "<" between int<6, max> and 0 is always false\.$#' - count: 1 - path: ./src/Generator/CombGenerator.php - message: '#^Comparison operation ">" between 6 and 0 is always true\.$#' count: 1