forked from phly/PhlyRestfully
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathphpstan-baseline.neon
102 lines (82 loc) · 3.15 KB
/
phpstan-baseline.neon
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
parameters:
ignoreErrors:
-
message: "#^Result of && is always false\\.$#"
count: 1
path: src/HalCollection.php
-
message: "#^Else branch is unreachable because ternary operator condition is always true\\.$#"
count: 5
path: src/HalCollection.php
-
message: "#^Result of && is always false\\.$#"
count: 1
path: src/HalResource.php
-
message: "#^Unsafe usage of new static\\(\\)\\.$#"
count: 1
path: src/Link.php
-
message: "#^Else branch is unreachable because ternary operator condition is always true\\.$#"
count: 2
path: src/Link.php
-
message: "#^Parameter \\#1 \\$listener of method Laminas\\\\EventManager\\\\SharedEventManagerInterface\\:\\:detach\\(\\) expects callable\\(\\)\\: mixed, 'PhlyRestfully\\\\\\\\ResourceController' given\\.$#"
count: 1
path: src/Listener/ResourceParametersListener.php
-
message: "#^Parameter \\#1 \\$matches of method PhlyRestfully\\\\ResourceInterface\\:\\:setRouteMatch\\(\\) expects Laminas\\\\Router\\\\RouteMatch, Laminas\\\\Router\\\\RouteMatch\\|null given\\.$#"
count: 1
path: src/Listener/ResourceParametersListener.php
-
message: "#^Negated boolean expression is always false\\.$#"
count: 1
path: src/Plugin/HalLinks.php
-
message: "#^Call to function is_object\\(\\) with string will always evaluate to false\\.$#"
count: 1
path: src/Plugin/HalLinks.php
-
message: "#^Else branch is unreachable because ternary operator condition is always true\\.$#"
count: 1
path: src/Plugin/HalLinks.php
-
message: "#^Unreachable statement \\- code above always terminates\\.$#"
count: 1
path: src/Plugin/HalLinks.php
-
message: "#^Parameter \\#1 \\$collection of class PhlyRestfully\\\\HalCollection constructor expects array\\|Traversable, array\\|object given\\.$#"
count: 1
path: src/Plugin/HalLinks.php
-
message: "#^Parameter \\#1 \\$collection of class PhlyRestfully\\\\HalCollection constructor expects array\\|Traversable, object given\\.$#"
count: 1
path: src/Plugin/HalLinks.php
-
message: "#^Cannot call method setItemCountPerPage\\(\\) on array\\|Traversable\\.$#"
count: 1
path: src/Plugin/HalLinks.php
-
message: "#^Cannot call method setCurrentPageNumber\\(\\) on array\\|Traversable\\.$#"
count: 1
path: src/Plugin/HalLinks.php
-
message: "#^Parameter \\#1 \\$(var|value) of function count expects array\\|Countable, array\\|Traversable given\\.$#"
count: 1
path: src/Plugin/HalLinks.php
-
message: "#^Negated boolean expression is always false\\.$#"
count: 1
path: src/Resource.php
-
message: "#^Result of && is always false\\.$#"
count: 2
path: src/Resource.php
-
message: "#^Negated boolean expression is always false\\.$#"
count: 1
path: src/ResourceController.php
-
message: "#^Return type \\(Laminas\\\\Http\\\\Response\\|PhlyRestfully\\\\ApiProblem\\|PhlyRestfully\\\\HalResource\\) of method PhlyRestfully\\\\ResourceController\\:\\:patch\\(\\) should be compatible with return type \\(array\\) of method Laminas\\\\Mvc\\\\Controller\\\\AbstractRestfulController\\:\\:patch\\(\\)$#"
count: 1
path: src/ResourceController.php