From 9c69ad9c80b9b7d590aa5b08a7e2588dde961cb8 Mon Sep 17 00:00:00 2001 From: sasezaki Date: Sun, 14 Jun 2020 14:02:03 +0900 Subject: [PATCH] phpstan level as 5 & re-genrate-baseline Signed-off-by: sasezaki --- phpstan-baseline.neon | 40 ++++++++++++++++++++++++++++++++++++++++ phpstan.neon.dist | 2 +- 2 files changed, 41 insertions(+), 1 deletion(-) diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 364905f7..c6397e4c 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -1,2 +1,42 @@ parameters: ignoreErrors: + - + message: "#^Result of && is always false\\.$#" + count: 1 + path: src/AbstractPluginManager.php + + - + message: "#^Else branch is unreachable because ternary operator condition is always true\\.$#" + count: 2 + path: src/AbstractPluginManager.php + + - + message: "#^Parameter \\#1 \\$detectedCycles of static method Laminas\\\\ServiceManager\\\\Exception\\\\CyclicAliasException\\:\\:printCycles\\(\\) expects array\\\\>, array\\\\> given\\.$#" + count: 1 + path: src/Exception/CyclicAliasException.php + + - + message: "#^If condition is always false\\.$#" + count: 1 + path: src/ServiceManager.php + + - + message: "#^Parameter \\#1 \\$autoload_function of function spl_autoload_register expects callable\\(string\\)\\: void, ProxyManager\\\\Autoloader\\\\AutoloaderInterface given\\.$#" + count: 1 + path: src/ServiceManager.php + + - + message: "#^Negated boolean expression is always true\\.$#" + count: 7 + path: src/ServiceManager.php + + - + message: "#^Left side of && is always true\\.$#" + count: 1 + path: src/Tool/ConfigDumper.php + + - + message: "#^Negated boolean expression is always false\\.$#" + count: 1 + path: src/Tool/FactoryCreator.php + diff --git a/phpstan.neon.dist b/phpstan.neon.dist index 888f3056..bc0f2c3a 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -2,6 +2,6 @@ includes: - phpstan-baseline.neon parameters: - level: 3 + level: 5 paths: - src