Skip to content

Commit

Permalink
phpstan level as 5 & re-genrate-baseline
Browse files Browse the repository at this point in the history
  • Loading branch information
sasezaki committed Jun 14, 2020
1 parent d19dbd1 commit dece750
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 1 deletion.
40 changes: 40 additions & 0 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
@@ -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\\<string\\>\\>, array\\<array\\<bool\\>\\> 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

2 changes: 1 addition & 1 deletion phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ includes:
- phpstan-baseline.neon

parameters:
level: 3
level: 5
paths:
- src

0 comments on commit dece750

Please sign in to comment.