Skip to content

Commit 0b04d48

Browse files
committed
Add baseline for iterable types
1 parent d8f29dc commit 0b04d48

File tree

2 files changed

+307
-1
lines changed

2 files changed

+307
-1
lines changed

phpstan-baseline.neon

+306
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,306 @@
1+
parameters:
2+
ignoreErrors:
3+
-
4+
message: "#^Method Phpactor\\\\LanguageServer\\\\Adapter\\\\DTL\\\\DTLArgumentResolver\\:\\:resolveArguments\\(\\) return type has no value type specified in iterable type array\\.$#"
5+
count: 1
6+
path: lib/Adapter/DTL/DTLArgumentResolver.php
7+
8+
-
9+
message: "#^Property Phpactor\\\\LanguageServer\\\\Core\\\\Command\\\\CommandDispatcher\\:\\:\\$commandMap type has no value type specified in iterable type array\\.$#"
10+
count: 1
11+
path: lib/Core/Command/CommandDispatcher.php
12+
13+
-
14+
message: "#^Method Phpactor\\\\LanguageServer\\\\Core\\\\Dispatcher\\\\ArgumentResolver\\:\\:resolveArguments\\(\\) return type has no value type specified in iterable type array\\.$#"
15+
count: 1
16+
path: lib/Core/Dispatcher/ArgumentResolver.php
17+
18+
-
19+
message: "#^Method Phpactor\\\\LanguageServer\\\\Core\\\\Dispatcher\\\\ArgumentResolver\\\\ChainArgumentResolver\\:\\:resolveArguments\\(\\) return type has no value type specified in iterable type array\\.$#"
20+
count: 1
21+
path: lib/Core/Dispatcher/ArgumentResolver/ChainArgumentResolver.php
22+
23+
-
24+
message: "#^Method Phpactor\\\\LanguageServer\\\\Core\\\\Dispatcher\\\\ArgumentResolver\\\\LanguageSeverProtocolParamsResolver\\:\\:doResolveArguments\\(\\) has parameter \\$arguments with no value type specified in iterable type array\\.$#"
25+
count: 1
26+
path: lib/Core/Dispatcher/ArgumentResolver/LanguageSeverProtocolParamsResolver.php
27+
28+
-
29+
message: "#^Method Phpactor\\\\LanguageServer\\\\Core\\\\Dispatcher\\\\ArgumentResolver\\\\LanguageSeverProtocolParamsResolver\\:\\:doResolveArguments\\(\\) return type has no value type specified in iterable type array\\.$#"
30+
count: 1
31+
path: lib/Core/Dispatcher/ArgumentResolver/LanguageSeverProtocolParamsResolver.php
32+
33+
-
34+
message: "#^Method Phpactor\\\\LanguageServer\\\\Core\\\\Dispatcher\\\\ArgumentResolver\\\\LanguageSeverProtocolParamsResolver\\:\\:resolveArguments\\(\\) return type has no value type specified in iterable type array\\.$#"
35+
count: 1
36+
path: lib/Core/Dispatcher/ArgumentResolver/LanguageSeverProtocolParamsResolver.php
37+
38+
-
39+
message: "#^Method Phpactor\\\\LanguageServer\\\\Core\\\\Dispatcher\\\\ArgumentResolver\\\\PassThroughArgumentResolver\\:\\:resolveArguments\\(\\) return type has no value type specified in iterable type array\\.$#"
40+
count: 1
41+
path: lib/Core/Dispatcher/ArgumentResolver/PassThroughArgumentResolver.php
42+
43+
-
44+
message: "#^Property Phpactor\\\\LanguageServer\\\\Core\\\\Dispatcher\\\\Dispatcher\\\\MiddlewareDispatcher\\:\\:\\$middleware type has no value type specified in iterable type array\\.$#"
45+
count: 1
46+
path: lib/Core/Dispatcher/Dispatcher/MiddlewareDispatcher.php
47+
48+
-
49+
message: "#^Property Phpactor\\\\LanguageServer\\\\Core\\\\Handler\\\\Handlers\\:\\:\\$methods type has no value type specified in iterable type array\\.$#"
50+
count: 1
51+
path: lib/Core/Handler/Handlers.php
52+
53+
-
54+
message: "#^Method Phpactor\\\\LanguageServer\\\\Core\\\\Middleware\\\\RequestHandler\\:\\:__construct\\(\\) has parameter \\$queue with no value type specified in iterable type array\\.$#"
55+
count: 1
56+
path: lib/Core/Middleware/RequestHandler.php
57+
58+
-
59+
message: "#^Method Phpactor\\\\LanguageServer\\\\Core\\\\Rpc\\\\NotificationMessage\\:\\:__construct\\(\\) has parameter \\$params with no value type specified in iterable type array\\.$#"
60+
count: 1
61+
path: lib/Core/Rpc/NotificationMessage.php
62+
63+
-
64+
message: "#^Method Phpactor\\\\LanguageServer\\\\Core\\\\Rpc\\\\RawMessage\\:\\:__construct\\(\\) has parameter \\$body with no value type specified in iterable type array\\.$#"
65+
count: 1
66+
path: lib/Core/Rpc/RawMessage.php
67+
68+
-
69+
message: "#^Method Phpactor\\\\LanguageServer\\\\Core\\\\Rpc\\\\RawMessage\\:\\:__construct\\(\\) has parameter \\$headers with no value type specified in iterable type array\\.$#"
70+
count: 1
71+
path: lib/Core/Rpc/RawMessage.php
72+
73+
-
74+
message: "#^Method Phpactor\\\\LanguageServer\\\\Core\\\\Rpc\\\\RawMessage\\:\\:body\\(\\) return type has no value type specified in iterable type array\\.$#"
75+
count: 1
76+
path: lib/Core/Rpc/RawMessage.php
77+
78+
-
79+
message: "#^Method Phpactor\\\\LanguageServer\\\\Core\\\\Rpc\\\\RawMessage\\:\\:headers\\(\\) return type has no value type specified in iterable type array\\.$#"
80+
count: 1
81+
path: lib/Core/Rpc/RawMessage.php
82+
83+
-
84+
message: "#^Property Phpactor\\\\LanguageServer\\\\Core\\\\Rpc\\\\RawMessage\\:\\:\\$body type has no value type specified in iterable type array\\.$#"
85+
count: 1
86+
path: lib/Core/Rpc/RawMessage.php
87+
88+
-
89+
message: "#^Property Phpactor\\\\LanguageServer\\\\Core\\\\Rpc\\\\RawMessage\\:\\:\\$headers type has no value type specified in iterable type array\\.$#"
90+
count: 1
91+
path: lib/Core/Rpc/RawMessage.php
92+
93+
-
94+
message: "#^Method Phpactor\\\\LanguageServer\\\\Core\\\\Rpc\\\\RequestMessage\\:\\:__construct\\(\\) has parameter \\$params with no value type specified in iterable type array\\.$#"
95+
count: 1
96+
path: lib/Core/Rpc/RequestMessage.php
97+
98+
-
99+
message: "#^Method Phpactor\\\\LanguageServer\\\\Core\\\\Rpc\\\\ResponseMessage\\:\\:jsonSerialize\\(\\) return type has no value type specified in iterable type array\\.$#"
100+
count: 1
101+
path: lib/Core/Rpc/ResponseMessage.php
102+
103+
-
104+
message: "#^Method Phpactor\\\\LanguageServer\\\\Core\\\\Server\\\\Client\\\\DiagnosticsClient\\:\\:publishDiagnostics\\(\\) has parameter \\$diagnostics with no value type specified in iterable type array\\.$#"
105+
count: 1
106+
path: lib/Core/Server/Client/DiagnosticsClient.php
107+
108+
-
109+
message: "#^Method Phpactor\\\\LanguageServer\\\\Core\\\\Server\\\\Client\\\\WorkDoneProgressClient\\:\\:notify\\(\\) has parameter \\$value with no value type specified in iterable type array\\.$#"
110+
count: 1
111+
path: lib/Core/Server/Client/WorkDoneProgressClient.php
112+
113+
-
114+
message: "#^Method Phpactor\\\\LanguageServer\\\\Core\\\\Server\\\\Client\\\\WorkspaceClient\\:\\:executeCommand\\(\\) has parameter \\$arguments with no value type specified in iterable type array\\.$#"
115+
count: 1
116+
path: lib/Core/Server/Client/WorkspaceClient.php
117+
118+
-
119+
message: "#^Method Phpactor\\\\LanguageServer\\\\Core\\\\Server\\\\Parser\\\\LspMessageReader\\:\\:decodeBody\\(\\) return type has no value type specified in iterable type array\\.$#"
120+
count: 1
121+
path: lib/Core/Server/Parser/LspMessageReader.php
122+
123+
-
124+
message: "#^Method Phpactor\\\\LanguageServer\\\\Core\\\\Server\\\\Parser\\\\LspMessageReader\\:\\:parseHeaders\\(\\) return type has no value type specified in iterable type array\\.$#"
125+
count: 1
126+
path: lib/Core/Server/Parser/LspMessageReader.php
127+
128+
-
129+
message: "#^Property Phpactor\\\\LanguageServer\\\\Core\\\\Server\\\\ResponseWatcher\\\\TestResponseWatcher\\:\\:\\$requestIds type has no value type specified in iterable type array\\.$#"
130+
count: 1
131+
path: lib/Core/Server/ResponseWatcher/TestResponseWatcher.php
132+
133+
-
134+
message: "#^Method Phpactor\\\\LanguageServer\\\\Core\\\\Server\\\\RpcClient\\:\\:notification\\(\\) has parameter \\$params with no value type specified in iterable type array\\.$#"
135+
count: 1
136+
path: lib/Core/Server/RpcClient.php
137+
138+
-
139+
message: "#^Method Phpactor\\\\LanguageServer\\\\Core\\\\Server\\\\RpcClient\\:\\:request\\(\\) has parameter \\$params with no value type specified in iterable type array\\.$#"
140+
count: 1
141+
path: lib/Core/Server/RpcClient.php
142+
143+
-
144+
message: "#^Method Phpactor\\\\LanguageServer\\\\Core\\\\Server\\\\RpcClient\\\\JsonRpcClient\\:\\:notification\\(\\) has parameter \\$params with no value type specified in iterable type array\\.$#"
145+
count: 1
146+
path: lib/Core/Server/RpcClient/JsonRpcClient.php
147+
148+
-
149+
message: "#^Method Phpactor\\\\LanguageServer\\\\Core\\\\Server\\\\RpcClient\\\\JsonRpcClient\\:\\:request\\(\\) has parameter \\$params with no value type specified in iterable type array\\.$#"
150+
count: 1
151+
path: lib/Core/Server/RpcClient/JsonRpcClient.php
152+
153+
-
154+
message: "#^Method Phpactor\\\\LanguageServer\\\\Core\\\\Server\\\\RpcClient\\\\TestRpcClient\\:\\:notification\\(\\) has parameter \\$params with no value type specified in iterable type array\\.$#"
155+
count: 1
156+
path: lib/Core/Server/RpcClient/TestRpcClient.php
157+
158+
-
159+
message: "#^Method Phpactor\\\\LanguageServer\\\\Core\\\\Server\\\\RpcClient\\\\TestRpcClient\\:\\:request\\(\\) has parameter \\$params with no value type specified in iterable type array\\.$#"
160+
count: 1
161+
path: lib/Core/Server/RpcClient/TestRpcClient.php
162+
163+
-
164+
message: "#^Method Phpactor\\\\LanguageServer\\\\Core\\\\Server\\\\Transmitter\\\\LspMessageSerializer\\:\\:ensureOnlyResultOrErrorSet\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#"
165+
count: 1
166+
path: lib/Core/Server/Transmitter/LspMessageSerializer.php
167+
168+
-
169+
message: "#^Method Phpactor\\\\LanguageServer\\\\Core\\\\Server\\\\Transmitter\\\\LspMessageSerializer\\:\\:ensureOnlyResultOrErrorSet\\(\\) return type has no value type specified in iterable type array\\.$#"
170+
count: 1
171+
path: lib/Core/Server/Transmitter/LspMessageSerializer.php
172+
173+
-
174+
message: "#^Property Phpactor\\\\LanguageServer\\\\Core\\\\Service\\\\ServiceManager\\:\\:\\$cancellations type has no value type specified in iterable type array\\.$#"
175+
count: 1
176+
path: lib/Core/Service/ServiceManager.php
177+
178+
-
179+
message: "#^Method Phpactor\\\\LanguageServer\\\\Core\\\\Service\\\\ServiceProvider\\:\\:services\\(\\) return type has no value type specified in iterable type array\\.$#"
180+
count: 1
181+
path: lib/Core/Service/ServiceProvider.php
182+
183+
-
184+
message: "#^Method Phpactor\\\\LanguageServer\\\\Event\\\\FilesChanged\\:\\:events\\(\\) return type has no value type specified in iterable type array\\.$#"
185+
count: 1
186+
path: lib/Event/FilesChanged.php
187+
188+
-
189+
message: "#^Property Phpactor\\\\LanguageServer\\\\Event\\\\FilesChanged\\:\\:\\$events type has no value type specified in iterable type array\\.$#"
190+
count: 1
191+
path: lib/Event/FilesChanged.php
192+
193+
-
194+
message: "#^Method Phpactor\\\\LanguageServer\\\\Example\\\\Service\\\\PingProvider\\:\\:services\\(\\) return type has no value type specified in iterable type array\\.$#"
195+
count: 1
196+
path: lib/Example/Service/PingProvider.php
197+
198+
-
199+
message: "#^Method Phpactor\\\\LanguageServer\\\\Handler\\\\System\\\\ServiceHandler\\:\\:runningServices\\(\\) return type has no value type specified in iterable type array\\.$#"
200+
count: 1
201+
path: lib/Handler/System/ServiceHandler.php
202+
203+
-
204+
message: "#^Property Phpactor\\\\LanguageServer\\\\LanguageServerTesterBuilder\\:\\:\\$commands type has no value type specified in iterable type array\\.$#"
205+
count: 1
206+
path: lib/LanguageServerTesterBuilder.php
207+
208+
-
209+
message: "#^Property Phpactor\\\\LanguageServer\\\\LanguageServerTesterBuilder\\:\\:\\$serviceProviders type has no value type specified in iterable type array\\.$#"
210+
count: 1
211+
path: lib/LanguageServerTesterBuilder.php
212+
213+
-
214+
message: "#^Method Phpactor\\\\LanguageServer\\\\Listener\\\\DidChangeWatchedFilesListener\\:\\:__construct\\(\\) has parameter \\$globPatterns with no value type specified in iterable type array\\.$#"
215+
count: 1
216+
path: lib/Listener/DidChangeWatchedFilesListener.php
217+
218+
-
219+
message: "#^Method Phpactor\\\\LanguageServer\\\\Listener\\\\DidChangeWatchedFilesListener\\:\\:getListenersForEvent\\(\\) return type has no value type specified in iterable type iterable\\.$#"
220+
count: 1
221+
path: lib/Listener/DidChangeWatchedFilesListener.php
222+
223+
-
224+
message: "#^Property Phpactor\\\\LanguageServer\\\\Listener\\\\DidChangeWatchedFilesListener\\:\\:\\$globPatterns type has no value type specified in iterable type array\\.$#"
225+
count: 1
226+
path: lib/Listener/DidChangeWatchedFilesListener.php
227+
228+
-
229+
message: "#^Method Phpactor\\\\LanguageServer\\\\Listener\\\\ServiceListener\\:\\:getListenersForEvent\\(\\) return type has no value type specified in iterable type iterable\\.$#"
230+
count: 1
231+
path: lib/Listener/ServiceListener.php
232+
233+
-
234+
message: "#^Method Phpactor\\\\LanguageServer\\\\Listener\\\\WorkspaceListener\\:\\:getListenersForEvent\\(\\) return type has no value type specified in iterable type iterable\\.$#"
235+
count: 1
236+
path: lib/Listener/WorkspaceListener.php
237+
238+
-
239+
message: "#^Method Phpactor\\\\LanguageServer\\\\Middleware\\\\MethodAliasMiddleware\\:\\:__construct\\(\\) has parameter \\$aliasMap with no value type specified in iterable type array\\.$#"
240+
count: 1
241+
path: lib/Middleware/MethodAliasMiddleware.php
242+
243+
-
244+
message: "#^Property Phpactor\\\\LanguageServer\\\\Middleware\\\\MethodAliasMiddleware\\:\\:\\$aliasMap type has no value type specified in iterable type array\\.$#"
245+
count: 1
246+
path: lib/Middleware/MethodAliasMiddleware.php
247+
248+
-
249+
message: "#^Method Phpactor\\\\LanguageServer\\\\Service\\\\DiagnosticsService\\:\\:getListenersForEvent\\(\\) return type has no value type specified in iterable type iterable\\.$#"
250+
count: 1
251+
path: lib/Service/DiagnosticsService.php
252+
253+
-
254+
message: "#^Method Phpactor\\\\LanguageServer\\\\Service\\\\DiagnosticsService\\:\\:services\\(\\) return type has no value type specified in iterable type array\\.$#"
255+
count: 1
256+
path: lib/Service/DiagnosticsService.php
257+
258+
-
259+
message: "#^Method Phpactor\\\\LanguageServer\\\\Test\\\\LanguageServerTester\\:\\:mustRequestAndWait\\(\\) has parameter \\$params with no value type specified in iterable type array\\.$#"
260+
count: 1
261+
path: lib/Test/LanguageServerTester.php
262+
263+
-
264+
message: "#^Method Phpactor\\\\LanguageServer\\\\Test\\\\LanguageServerTester\\:\\:normalizeParams\\(\\) has parameter \\$params with no value type specified in iterable type array\\.$#"
265+
count: 1
266+
path: lib/Test/LanguageServerTester.php
267+
268+
-
269+
message: "#^Method Phpactor\\\\LanguageServer\\\\Test\\\\LanguageServerTester\\:\\:notify\\(\\) has parameter \\$params with no value type specified in iterable type array\\.$#"
270+
count: 1
271+
path: lib/Test/LanguageServerTester.php
272+
273+
-
274+
message: "#^Method Phpactor\\\\LanguageServer\\\\Test\\\\LanguageServerTester\\:\\:notifyAndWait\\(\\) has parameter \\$params with no value type specified in iterable type array\\.$#"
275+
count: 1
276+
path: lib/Test/LanguageServerTester.php
277+
278+
-
279+
message: "#^Method Phpactor\\\\LanguageServer\\\\Test\\\\LanguageServerTester\\:\\:request\\(\\) has parameter \\$params with no value type specified in iterable type array\\.$#"
280+
count: 1
281+
path: lib/Test/LanguageServerTester.php
282+
283+
-
284+
message: "#^Method Phpactor\\\\LanguageServer\\\\Test\\\\LanguageServerTester\\:\\:requestAndWait\\(\\) has parameter \\$params with no value type specified in iterable type array\\.$#"
285+
count: 1
286+
path: lib/Test/LanguageServerTester.php
287+
288+
-
289+
message: "#^Method Phpactor\\\\LanguageServer\\\\Test\\\\LanguageServerTester\\\\WorkspaceTester\\:\\:executeCommand\\(\\) has parameter \\$args with no value type specified in iterable type array\\.$#"
290+
count: 1
291+
path: lib/Test/LanguageServerTester/WorkspaceTester.php
292+
293+
-
294+
message: "#^Method Phpactor\\\\LanguageServer\\\\Test\\\\ListenerProvider\\\\RecordingListenerProvider\\:\\:getListenersForEvent\\(\\) return type has no value type specified in iterable type iterable\\.$#"
295+
count: 1
296+
path: lib/Test/ListenerProvider/RecordingListenerProvider.php
297+
298+
-
299+
message: "#^Method Phpactor\\\\LanguageServer\\\\Test\\\\ProtocolFactory\\:\\:notificationMessage\\(\\) has parameter \\$params with no value type specified in iterable type array\\.$#"
300+
count: 1
301+
path: lib/Test/ProtocolFactory.php
302+
303+
-
304+
message: "#^Method Phpactor\\\\LanguageServer\\\\Test\\\\ProtocolFactory\\:\\:requestMessage\\(\\) has parameter \\$params with no value type specified in iterable type array\\.$#"
305+
count: 1
306+
path: lib/Test/ProtocolFactory.php

phpstan.neon

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
parameters:
22
level: 9
33
inferPrivatePropertyTypeFromConstructor: true
4-
checkMissingIterableValueType: false
4+
checkMissingIterableValueType: true
55
paths:
66
- lib
77
- example

0 commit comments

Comments
 (0)