Skip to content

Commit 17723b7

Browse files
committed
fix
1 parent a6ec62c commit 17723b7

File tree

2 files changed

+1068
-17
lines changed

2 files changed

+1068
-17
lines changed

phpstan-baseline.neon

Lines changed: 354 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,360 @@ parameters:
7878
count: 1
7979
path: src/Command/BaseLoggingCommandInitializer.php
8080

81+
-
82+
message: '#^Cannot access offset ''name'' on mixed\.$#'
83+
identifier: offsetAccess.nonOffsetAccessible
84+
count: 2
85+
path: src/Compat/Logger.php
86+
87+
-
88+
message: '#^Cannot access offset ''options'' on mixed\.$#'
89+
identifier: offsetAccess.nonOffsetAccessible
90+
count: 2
91+
path: src/Compat/Logger.php
92+
93+
-
94+
message: '#^Cannot access offset ''priority'' on mixed\.$#'
95+
identifier: offsetAccess.nonOffsetAccessible
96+
count: 2
97+
path: src/Compat/Logger.php
98+
99+
-
100+
message: '#^Cannot call method shutdown\(\) on mixed\.$#'
101+
identifier: method.nonObject
102+
count: 1
103+
path: src/Compat/Logger.php
104+
105+
-
106+
message: '#^Cannot cast mixed to string\.$#'
107+
identifier: cast.string
108+
count: 1
109+
path: src/Compat/Logger.php
110+
111+
-
112+
message: '#^Method ErrorHeroModule\\Compat\\Logger\:\:__construct\(\) has parameter \$options with no value type specified in iterable type Traversable\.$#'
113+
identifier: missingType.iterableValue
114+
count: 1
115+
path: src/Compat/Logger.php
116+
117+
-
118+
message: '#^Method ErrorHeroModule\\Compat\\Logger\:\:__construct\(\) has parameter \$options with no value type specified in iterable type array\.$#'
119+
identifier: missingType.iterableValue
120+
count: 1
121+
path: src/Compat/Logger.php
122+
123+
-
124+
message: '#^Method ErrorHeroModule\\Compat\\Logger\:\:addProcessor\(\) has parameter \$options with no value type specified in iterable type array\.$#'
125+
identifier: missingType.iterableValue
126+
count: 1
127+
path: src/Compat/Logger.php
128+
129+
-
130+
message: '#^Method ErrorHeroModule\\Compat\\Logger\:\:addWriter\(\) has parameter \$options with no value type specified in iterable type array\.$#'
131+
identifier: missingType.iterableValue
132+
count: 1
133+
path: src/Compat/Logger.php
134+
135+
-
136+
message: '#^Method ErrorHeroModule\\Compat\\Logger\:\:alert\(\) has parameter \$extra with no value type specified in iterable type Traversable\.$#'
137+
identifier: missingType.iterableValue
138+
count: 1
139+
path: src/Compat/Logger.php
140+
141+
-
142+
message: '#^Method ErrorHeroModule\\Compat\\Logger\:\:alert\(\) has parameter \$extra with no value type specified in iterable type array\.$#'
143+
identifier: missingType.iterableValue
144+
count: 1
145+
path: src/Compat/Logger.php
146+
147+
-
148+
message: '#^Method ErrorHeroModule\\Compat\\Logger\:\:alert\(\) has parameter \$extra with no value type specified in iterable type array\|Traversable\.$#'
149+
identifier: missingType.iterableValue
150+
count: 1
151+
path: src/Compat/Logger.php
152+
153+
-
154+
message: '#^Method ErrorHeroModule\\Compat\\Logger\:\:crit\(\) has parameter \$extra with no value type specified in iterable type Traversable\.$#'
155+
identifier: missingType.iterableValue
156+
count: 1
157+
path: src/Compat/Logger.php
158+
159+
-
160+
message: '#^Method ErrorHeroModule\\Compat\\Logger\:\:crit\(\) has parameter \$extra with no value type specified in iterable type array\.$#'
161+
identifier: missingType.iterableValue
162+
count: 1
163+
path: src/Compat/Logger.php
164+
165+
-
166+
message: '#^Method ErrorHeroModule\\Compat\\Logger\:\:crit\(\) has parameter \$extra with no value type specified in iterable type array\|Traversable\.$#'
167+
identifier: missingType.iterableValue
168+
count: 1
169+
path: src/Compat/Logger.php
170+
171+
-
172+
message: '#^Method ErrorHeroModule\\Compat\\Logger\:\:debug\(\) has parameter \$extra with no value type specified in iterable type Traversable\.$#'
173+
identifier: missingType.iterableValue
174+
count: 1
175+
path: src/Compat/Logger.php
176+
177+
-
178+
message: '#^Method ErrorHeroModule\\Compat\\Logger\:\:debug\(\) has parameter \$extra with no value type specified in iterable type array\.$#'
179+
identifier: missingType.iterableValue
180+
count: 1
181+
path: src/Compat/Logger.php
182+
183+
-
184+
message: '#^Method ErrorHeroModule\\Compat\\Logger\:\:debug\(\) has parameter \$extra with no value type specified in iterable type array\|Traversable\.$#'
185+
identifier: missingType.iterableValue
186+
count: 1
187+
path: src/Compat/Logger.php
188+
189+
-
190+
message: '#^Method ErrorHeroModule\\Compat\\Logger\:\:emerg\(\) has parameter \$extra with no value type specified in iterable type Traversable\.$#'
191+
identifier: missingType.iterableValue
192+
count: 1
193+
path: src/Compat/Logger.php
194+
195+
-
196+
message: '#^Method ErrorHeroModule\\Compat\\Logger\:\:emerg\(\) has parameter \$extra with no value type specified in iterable type array\.$#'
197+
identifier: missingType.iterableValue
198+
count: 1
199+
path: src/Compat/Logger.php
200+
201+
-
202+
message: '#^Method ErrorHeroModule\\Compat\\Logger\:\:emerg\(\) has parameter \$extra with no value type specified in iterable type array\|Traversable\.$#'
203+
identifier: missingType.iterableValue
204+
count: 1
205+
path: src/Compat/Logger.php
206+
207+
-
208+
message: '#^Method ErrorHeroModule\\Compat\\Logger\:\:err\(\) has parameter \$extra with no value type specified in iterable type Traversable\.$#'
209+
identifier: missingType.iterableValue
210+
count: 1
211+
path: src/Compat/Logger.php
212+
213+
-
214+
message: '#^Method ErrorHeroModule\\Compat\\Logger\:\:err\(\) has parameter \$extra with no value type specified in iterable type array\.$#'
215+
identifier: missingType.iterableValue
216+
count: 1
217+
path: src/Compat/Logger.php
218+
219+
-
220+
message: '#^Method ErrorHeroModule\\Compat\\Logger\:\:err\(\) has parameter \$extra with no value type specified in iterable type array\|Traversable\.$#'
221+
identifier: missingType.iterableValue
222+
count: 1
223+
path: src/Compat/Logger.php
224+
225+
-
226+
message: '#^Method ErrorHeroModule\\Compat\\Logger\:\:getProcessors\(\) return type with generic class Laminas\\Stdlib\\SplPriorityQueue does not specify its types\: TValue, TPriority$#'
227+
identifier: missingType.generics
228+
count: 1
229+
path: src/Compat/Logger.php
230+
231+
-
232+
message: '#^Method ErrorHeroModule\\Compat\\Logger\:\:getWriters\(\) return type with generic class Laminas\\Stdlib\\SplPriorityQueue does not specify its types\: TValue, TPriority$#'
233+
identifier: missingType.generics
234+
count: 1
235+
path: src/Compat/Logger.php
236+
237+
-
238+
message: '#^Method ErrorHeroModule\\Compat\\Logger\:\:info\(\) has parameter \$extra with no value type specified in iterable type Traversable\.$#'
239+
identifier: missingType.iterableValue
240+
count: 1
241+
path: src/Compat/Logger.php
242+
243+
-
244+
message: '#^Method ErrorHeroModule\\Compat\\Logger\:\:info\(\) has parameter \$extra with no value type specified in iterable type array\.$#'
245+
identifier: missingType.iterableValue
246+
count: 1
247+
path: src/Compat/Logger.php
248+
249+
-
250+
message: '#^Method ErrorHeroModule\\Compat\\Logger\:\:info\(\) has parameter \$extra with no value type specified in iterable type array\|Traversable\.$#'
251+
identifier: missingType.iterableValue
252+
count: 1
253+
path: src/Compat/Logger.php
254+
255+
-
256+
message: '#^Method ErrorHeroModule\\Compat\\Logger\:\:log\(\) has parameter \$extra with no value type specified in iterable type Traversable\.$#'
257+
identifier: missingType.iterableValue
258+
count: 1
259+
path: src/Compat/Logger.php
260+
261+
-
262+
message: '#^Method ErrorHeroModule\\Compat\\Logger\:\:log\(\) has parameter \$extra with no value type specified in iterable type array\.$#'
263+
identifier: missingType.iterableValue
264+
count: 1
265+
path: src/Compat/Logger.php
266+
267+
-
268+
message: '#^Method ErrorHeroModule\\Compat\\Logger\:\:log\(\) has parameter \$extra with no value type specified in iterable type array\|Traversable\.$#'
269+
identifier: missingType.iterableValue
270+
count: 1
271+
path: src/Compat/Logger.php
272+
273+
-
274+
message: '#^Method ErrorHeroModule\\Compat\\Logger\:\:notice\(\) has parameter \$extra with no value type specified in iterable type Traversable\.$#'
275+
identifier: missingType.iterableValue
276+
count: 1
277+
path: src/Compat/Logger.php
278+
279+
-
280+
message: '#^Method ErrorHeroModule\\Compat\\Logger\:\:notice\(\) has parameter \$extra with no value type specified in iterable type array\.$#'
281+
identifier: missingType.iterableValue
282+
count: 1
283+
path: src/Compat/Logger.php
284+
285+
-
286+
message: '#^Method ErrorHeroModule\\Compat\\Logger\:\:notice\(\) has parameter \$extra with no value type specified in iterable type array\|Traversable\.$#'
287+
identifier: missingType.iterableValue
288+
count: 1
289+
path: src/Compat/Logger.php
290+
291+
-
292+
message: '#^Method ErrorHeroModule\\Compat\\Logger\:\:processorPlugin\(\) has parameter \$options with no value type specified in iterable type array\.$#'
293+
identifier: missingType.iterableValue
294+
count: 1
295+
path: src/Compat/Logger.php
296+
297+
-
298+
message: '#^Method ErrorHeroModule\\Compat\\Logger\:\:processorPlugin\(\) should return Laminas\\Log\\Processor\\ProcessorInterface but returns mixed\.$#'
299+
identifier: return.type
300+
count: 1
301+
path: src/Compat/Logger.php
302+
303+
-
304+
message: '#^Method ErrorHeroModule\\Compat\\Logger\:\:setWriters\(\) has parameter \$splPriorityQueue with generic class Laminas\\Stdlib\\SplPriorityQueue but does not specify its types\: TValue, TPriority$#'
305+
identifier: missingType.generics
306+
count: 1
307+
path: src/Compat/Logger.php
308+
309+
-
310+
message: '#^Method ErrorHeroModule\\Compat\\Logger\:\:warn\(\) has parameter \$extra with no value type specified in iterable type Traversable\.$#'
311+
identifier: missingType.iterableValue
312+
count: 1
313+
path: src/Compat/Logger.php
314+
315+
-
316+
message: '#^Method ErrorHeroModule\\Compat\\Logger\:\:warn\(\) has parameter \$extra with no value type specified in iterable type array\.$#'
317+
identifier: missingType.iterableValue
318+
count: 1
319+
path: src/Compat/Logger.php
320+
321+
-
322+
message: '#^Method ErrorHeroModule\\Compat\\Logger\:\:warn\(\) has parameter \$extra with no value type specified in iterable type array\|Traversable\.$#'
323+
identifier: missingType.iterableValue
324+
count: 1
325+
path: src/Compat/Logger.php
326+
327+
-
328+
message: '#^Method ErrorHeroModule\\Compat\\Logger\:\:writerPlugin\(\) has parameter \$options with no value type specified in iterable type array\.$#'
329+
identifier: missingType.iterableValue
330+
count: 1
331+
path: src/Compat/Logger.php
332+
333+
-
334+
message: '#^Method ErrorHeroModule\\Compat\\Logger\:\:writerPlugin\(\) should return Laminas\\Log\\Writer\\WriterInterface but returns mixed\.$#'
335+
identifier: return.type
336+
count: 1
337+
path: src/Compat/Logger.php
338+
339+
-
340+
message: '#^PHPDoc tag @return with type mixed is not subtype of native type \(callable\)\|false\|null\.$#'
341+
identifier: return.phpDocType
342+
count: 1
343+
path: src/Compat/Logger.php
344+
345+
-
346+
message: '#^Parameter \#1 \$plugins of method ErrorHeroModule\\Compat\\Logger\:\:setProcessorPluginManager\(\) expects Laminas\\Log\\ProcessorPluginManager\|string, Laminas\\ServiceManager\\AbstractPluginManager given\.$#'
347+
identifier: argument.type
348+
count: 1
349+
path: src/Compat/Logger.php
350+
351+
-
352+
message: '#^Parameter \#1 \$priority of method ErrorHeroModule\\Compat\\Logger\:\:log\(\) expects int, mixed given\.$#'
353+
identifier: argument.type
354+
count: 3
355+
path: src/Compat/Logger.php
356+
357+
-
358+
message: '#^Parameter \#1 \$processor of method ErrorHeroModule\\Compat\\Logger\:\:addProcessor\(\) expects Laminas\\Log\\Processor\\ProcessorInterface\|string, mixed given\.$#'
359+
identifier: argument.type
360+
count: 1
361+
path: src/Compat/Logger.php
362+
363+
-
364+
message: '#^Parameter \#1 \$writer of method ErrorHeroModule\\Compat\\Logger\:\:addWriter\(\) expects Laminas\\Log\\Writer\\WriterInterface\|string, mixed given\.$#'
365+
identifier: argument.type
366+
count: 1
367+
path: src/Compat/Logger.php
368+
369+
-
370+
message: '#^Parameter \#1 \$writerPluginManager of method ErrorHeroModule\\Compat\\Logger\:\:setWriterPluginManager\(\) expects Laminas\\Log\\WriterPluginManager, Laminas\\ServiceManager\\AbstractPluginManager given\.$#'
371+
identifier: argument.type
372+
count: 1
373+
path: src/Compat/Logger.php
374+
375+
-
376+
message: '#^Parameter \#2 \$priority of method ErrorHeroModule\\Compat\\Logger\:\:addProcessor\(\) expects int, mixed given\.$#'
377+
identifier: argument.type
378+
count: 1
379+
path: src/Compat/Logger.php
380+
381+
-
382+
message: '#^Parameter \#2 \$priority of method ErrorHeroModule\\Compat\\Logger\:\:addWriter\(\) expects int, mixed given\.$#'
383+
identifier: argument.type
384+
count: 1
385+
path: src/Compat/Logger.php
386+
387+
-
388+
message: '#^Parameter \#3 \$options of method ErrorHeroModule\\Compat\\Logger\:\:addProcessor\(\) expects array\|null, mixed given\.$#'
389+
identifier: argument.type
390+
count: 1
391+
path: src/Compat/Logger.php
392+
393+
-
394+
message: '#^Parameter \#3 \$options of method ErrorHeroModule\\Compat\\Logger\:\:addWriter\(\) expects array\|null, mixed given\.$#'
395+
identifier: argument.type
396+
count: 1
397+
path: src/Compat/Logger.php
398+
399+
-
400+
message: '#^Property ErrorHeroModule\\Compat\\Logger\:\:\$errorPriorityMap type has no value type specified in iterable type array\.$#'
401+
identifier: missingType.iterableValue
402+
count: 1
403+
path: src/Compat/Logger.php
404+
405+
-
406+
message: '#^Property ErrorHeroModule\\Compat\\Logger\:\:\$priorities type has no value type specified in iterable type array\.$#'
407+
identifier: missingType.iterableValue
408+
count: 1
409+
path: src/Compat/Logger.php
410+
411+
-
412+
message: '#^Property ErrorHeroModule\\Compat\\Logger\:\:\$processors with generic class Laminas\\Stdlib\\SplPriorityQueue does not specify its types\: TValue, TPriority$#'
413+
identifier: missingType.generics
414+
count: 1
415+
path: src/Compat/Logger.php
416+
417+
-
418+
message: '#^Property ErrorHeroModule\\Compat\\Logger\:\:\$writers with generic class Laminas\\Stdlib\\SplPriorityQueue does not specify its types\: TValue, TPriority$#'
419+
identifier: missingType.generics
420+
count: 1
421+
path: src/Compat/Logger.php
422+
81423
-
82424
message: '#^Method ErrorHeroModule\\Compat\\LoggerAbstractServiceFactory\:\:__invoke\(\) has parameter \$options with no value type specified in iterable type array\.$#'
83425
identifier: missingType.iterableValue
84426
count: 1
85427
path: src/Compat/LoggerAbstractServiceFactory.php
86428

429+
-
430+
message: '#^Method ErrorHeroModule\\Compat\\LoggerAbstractServiceFactory\:\:__invoke\(\) should return Laminas\\Log\\Logger but returns ErrorHeroModule\\Compat\\Logger\.$#'
431+
identifier: return.type
432+
count: 1
433+
path: src/Compat/LoggerAbstractServiceFactory.php
434+
87435
-
88436
message: '#^Parameter \#1 \$config of method Laminas\\Log\\LoggerServiceFactory\:\:processConfig\(\) expects array, mixed given\.$#'
89437
identifier: argument.type
@@ -132,6 +480,12 @@ parameters:
132480
count: 1
133481
path: src/Handler/Logging.php
134482

483+
-
484+
message: '#^Method ErrorHeroModule\\Handler\\Logging\:\:collectErrorExceptionData\(\) should return array\{priority\: int, errorType\: string, errorFile\: string, errorLine\: int, trace\: string, errorMessage\: string\} but returns array\{priority\: mixed, errorType\: ''E_COMPILE_ERROR''\|''E_COMPILE_WARNING''\|''E_CORE_ERROR''\|''E_CORE_WARNING''\|''E_DEPRECATED''\|''E_ERROR''\|''E_NOTICE''\|''E_PARSE''\|''E_RECOVERABLE_ERROR''\|''E_STRICT''\|''E_USER_DEPRECATED''\|''E_USER_ERROR''\|''E_USER_NOTICE''\|''E_USER_WARNING''\|''E_WARNING''\|\(class\-string\<Throwable\>&literal\-string\), errorFile\: string, errorLine\: int, trace\: string, errorMessage\: string\}\.$#'
485+
identifier: return.type
486+
count: 1
487+
path: src/Handler/Logging.php
488+
135489
-
136490
message: '#^Method ErrorHeroModule\\Handler\\Logging\:\:collectErrorExceptionExtraData\(\) has parameter \$collectedExceptionData with no value type specified in iterable type array\.$#'
137491
identifier: missingType.iterableValue

0 commit comments

Comments
 (0)