Skip to content

Commit dece750

Browse files
committed
phpstan level as 5 & re-genrate-baseline
1 parent d19dbd1 commit dece750

File tree

2 files changed

+41
-1
lines changed

2 files changed

+41
-1
lines changed

phpstan-baseline.neon

+40
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,42 @@
11
parameters:
22
ignoreErrors:
3+
-
4+
message: "#^Result of && is always false\\.$#"
5+
count: 1
6+
path: src/AbstractPluginManager.php
7+
8+
-
9+
message: "#^Else branch is unreachable because ternary operator condition is always true\\.$#"
10+
count: 2
11+
path: src/AbstractPluginManager.php
12+
13+
-
14+
message: "#^Parameter \\#1 \\$detectedCycles of static method Laminas\\\\ServiceManager\\\\Exception\\\\CyclicAliasException\\:\\:printCycles\\(\\) expects array\\<array\\<string\\>\\>, array\\<array\\<bool\\>\\> given\\.$#"
15+
count: 1
16+
path: src/Exception/CyclicAliasException.php
17+
18+
-
19+
message: "#^If condition is always false\\.$#"
20+
count: 1
21+
path: src/ServiceManager.php
22+
23+
-
24+
message: "#^Parameter \\#1 \\$autoload_function of function spl_autoload_register expects callable\\(string\\)\\: void, ProxyManager\\\\Autoloader\\\\AutoloaderInterface given\\.$#"
25+
count: 1
26+
path: src/ServiceManager.php
27+
28+
-
29+
message: "#^Negated boolean expression is always true\\.$#"
30+
count: 7
31+
path: src/ServiceManager.php
32+
33+
-
34+
message: "#^Left side of && is always true\\.$#"
35+
count: 1
36+
path: src/Tool/ConfigDumper.php
37+
38+
-
39+
message: "#^Negated boolean expression is always false\\.$#"
40+
count: 1
41+
path: src/Tool/FactoryCreator.php
42+

phpstan.neon.dist

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ includes:
22
- phpstan-baseline.neon
33

44
parameters:
5-
level: 3
5+
level: 5
66
paths:
77
- src

0 commit comments

Comments
 (0)