forked from mezzio/mezzio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpstan-baseline.neon
217 lines (174 loc) · 8.62 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
parameters:
ignoreErrors:
-
message: "#^Method Mezzio\\\\Application\\:\\:pipe\\(\\) has parameter \\$middleware with no value type specified in iterable type array\\.$#"
count: 1
path: src/Application.php
-
message: "#^Method Mezzio\\\\Application\\:\\:pipe\\(\\) has parameter \\$middlewareOrPath with no value type specified in iterable type array\\.$#"
count: 1
path: src/Application.php
-
message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#"
count: 1
path: src/Application.php
-
message: "#^Parameter \\#1 \\$path of function Laminas\\\\Stratigility\\\\path expects string, array\\|\\(callable\\)\\|Psr\\\\Http\\\\Server\\\\MiddlewareInterface\\|Psr\\\\Http\\\\Server\\\\RequestHandlerInterface\\|string given\\.$#"
count: 1
path: src/Application.php
-
message: "#^Method Mezzio\\\\Application\\:\\:route\\(\\) has parameter \\$methods with no value type specified in iterable type array\\.$#"
count: 1
path: src/Application.php
-
message: "#^Method Mezzio\\\\Application\\:\\:route\\(\\) has parameter \\$middleware with no value type specified in iterable type array\\.$#"
count: 1
path: src/Application.php
-
message: "#^Method Mezzio\\\\Application\\:\\:get\\(\\) has parameter \\$middleware with no value type specified in iterable type array\\.$#"
count: 1
path: src/Application.php
-
message: "#^Method Mezzio\\\\Application\\:\\:post\\(\\) has parameter \\$middleware with no value type specified in iterable type array\\.$#"
count: 1
path: src/Application.php
-
message: "#^Method Mezzio\\\\Application\\:\\:put\\(\\) has parameter \\$middleware with no value type specified in iterable type array\\.$#"
count: 1
path: src/Application.php
-
message: "#^Method Mezzio\\\\Application\\:\\:patch\\(\\) has parameter \\$middleware with no value type specified in iterable type array\\.$#"
count: 1
path: src/Application.php
-
message: "#^Method Mezzio\\\\Application\\:\\:delete\\(\\) has parameter \\$middleware with no value type specified in iterable type array\\.$#"
count: 1
path: src/Application.php
-
message: "#^Method Mezzio\\\\Application\\:\\:any\\(\\) has parameter \\$middleware with no value type specified in iterable type array\\.$#"
count: 1
path: src/Application.php
-
message: "#^Method Mezzio\\\\ConfigProvider\\:\\:__invoke\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1
path: src/ConfigProvider.php
-
message: "#^Method Mezzio\\\\ConfigProvider\\:\\:getDependencies\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1
path: src/ConfigProvider.php
-
message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#"
count: 4
path: src/Container/ApplicationConfigInjectionDelegator.php
-
message: "#^Method Mezzio\\\\Container\\\\ApplicationConfigInjectionDelegator\\:\\:injectPipelineFromConfig\\(\\) has parameter \\$config with no value type specified in iterable type array\\.$#"
count: 1
path: src/Container/ApplicationConfigInjectionDelegator.php
-
message: "#^Method Mezzio\\\\Container\\\\ApplicationConfigInjectionDelegator\\:\\:injectRoutesFromConfig\\(\\) has parameter \\$config with no value type specified in iterable type array\\.$#"
count: 1
path: src/Container/ApplicationConfigInjectionDelegator.php
-
message: "#^Anonymous function should have native return typehint \"Laminas\\\\Diactoros\\\\ServerRequest\"\\.$#"
count: 1
path: src/Container/ServerRequestFactoryFactory.php
-
message: "#^Method Mezzio\\\\Container\\\\WhoopsFactory\\:\\:registerJsonHandler\\(\\) has parameter \\$config with generic interface ArrayAccess but does not specify its types\\: TKey, TValue$#"
count: 1
path: src/Container/WhoopsFactory.php
-
message: "#^Method Mezzio\\\\Container\\\\WhoopsFactory\\:\\:registerJsonHandler\\(\\) has parameter \\$config with no value type specified in iterable type array\\.$#"
count: 1
path: src/Container/WhoopsFactory.php
-
message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#"
count: 3
path: src/Container/WhoopsFactory.php
-
message: "#^Method Mezzio\\\\Container\\\\WhoopsPageHandlerFactory\\:\\:injectEditor\\(\\) has parameter \\$config with generic interface ArrayAccess but does not specify its types\\: TKey, TValue$#"
count: 1
path: src/Container/WhoopsPageHandlerFactory.php
-
message: "#^Method Mezzio\\\\Container\\\\WhoopsPageHandlerFactory\\:\\:injectEditor\\(\\) has parameter \\$config with no value type specified in iterable type array\\.$#"
count: 1
path: src/Container/WhoopsPageHandlerFactory.php
-
message: "#^Property Mezzio\\\\Middleware\\\\ErrorResponseGenerator\\:\\:\\$renderer \\(Mezzio\\\\Template\\\\TemplateRendererInterface\\) does not accept Mezzio\\\\Template\\\\TemplateRendererInterface\\|null\\.$#"
count: 1
path: src/Middleware/ErrorResponseGenerator.php
-
message: "#^If condition is always true\\.$#"
count: 1
path: src/Middleware/ErrorResponseGenerator.php
-
message: "#^Only booleans are allowed in an if condition, Mezzio\\\\Template\\\\TemplateRendererInterface given\\.$#"
count: 1
path: src/Middleware/ErrorResponseGenerator.php
-
message: "#^Unreachable statement \\- code above always terminates\\.$#"
count: 1
path: src/Middleware/ErrorResponseGenerator.php
-
message: "#^Method Mezzio\\\\Middleware\\\\ErrorResponseGenerator\\:\\:prepareTemplatedResponse\\(\\) has parameter \\$templateData with no value type specified in iterable type array\\.$#"
count: 1
path: src/Middleware/ErrorResponseGenerator.php
-
message: "#^Instanceof between \\*NEVER\\* and Whoops\\\\Run will always evaluate to false\\.$#"
count: 1
path: src/Middleware/WhoopsErrorResponseGenerator.php
-
message: "#^Instanceof between Whoops\\\\RunInterface and Whoops\\\\RunInterface will always evaluate to true\\.$#"
count: 1
path: src/Middleware/WhoopsErrorResponseGenerator.php
-
message: "#^Result of \\|\\| is always true\\.$#"
count: 1
path: src/Middleware/WhoopsErrorResponseGenerator.php
-
message: "#^Call to function is_object\\(\\) with \\*NEVER\\* will always evaluate to true\\.$#"
count: 1
path: src/Middleware/WhoopsErrorResponseGenerator.php
-
message: "#^Else branch is unreachable because ternary operator condition is always true\\.$#"
count: 1
path: src/Middleware/WhoopsErrorResponseGenerator.php
-
message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#"
count: 2
path: src/Middleware/WhoopsErrorResponseGenerator.php
-
message: "#^Method Mezzio\\\\MiddlewareFactory\\:\\:prepare\\(\\) has parameter \\$middleware with no value type specified in iterable type array\\.$#"
count: 1
path: src/MiddlewareFactory.php
-
message: "#^Call to function is_string\\(\\) with string will always evaluate to true\\.$#"
count: 1
path: src/MiddlewareFactory.php
-
message: "#^Method Mezzio\\\\MiddlewareFactory\\:\\:pipeline\\(\\) has parameter \\$middleware with no value type specified in iterable type array\\.$#"
count: 1
path: src/MiddlewareFactory.php
-
message: "#^Argument of an invalid type array\\|\\(callable\\)\\|Psr\\\\Http\\\\Server\\\\MiddlewareInterface\\|Psr\\\\Http\\\\Server\\\\RequestHandlerInterface\\|string supplied for foreach, only iterables are supported\\.$#"
count: 1
path: src/MiddlewareFactory.php
-
message: "#^Method Mezzio\\\\Response\\\\ServerRequestErrorResponseGenerator\\:\\:prepareTemplatedResponse\\(\\) has parameter \\$templateData with no value type specified in iterable type array\\.$#"
count: 1
path: src/Response/ServerRequestErrorResponseGenerator.php
-
message: "#^Property Mezzio\\\\Response\\\\ServerRequestErrorResponseGenerator\\:\\:\\$renderer \\(Mezzio\\\\Template\\\\TemplateRendererInterface\\) does not accept Mezzio\\\\Template\\\\TemplateRendererInterface\\|null\\.$#"
count: 1
path: src/Response/ServerRequestErrorResponseGenerator.php
-
message: "#^If condition is always true\\.$#"
count: 1
path: src/Response/ServerRequestErrorResponseGenerator.php
-
message: "#^Only booleans are allowed in an if condition, Mezzio\\\\Template\\\\TemplateRendererInterface given\\.$#"
count: 1
path: src/Response/ServerRequestErrorResponseGenerator.php
-
message: "#^Unreachable statement \\- code above always terminates\\.$#"
count: 1
path: src/Response/ServerRequestErrorResponseGenerator.php