Skip to content

Commit f5eac5f

Browse files
committed
fix phpstan
1 parent 4090031 commit f5eac5f

File tree

1 file changed

+133
-0
lines changed

1 file changed

+133
-0
lines changed

phpstan-baseline.neon

Lines changed: 133 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,133 @@
1+
parameters:
2+
ignoreErrors:
3+
-
4+
message: '#^Call to static method Webmozart\\Assert\\Assert\:\:notNull\(\) with Laminas\\Router\\RouteMatch\|Mezzio\\Router\\RouteResult will always evaluate to true\.$#'
5+
identifier: staticMethod.alreadyNarrowedType
6+
count: 1
7+
path: src/Listener/ForceHttps.php
8+
9+
-
10+
message: '#^Cannot access offset ''enable'' on mixed\.$#'
11+
identifier: offsetAccess.nonOffsetAccessible
12+
count: 2
13+
path: src/Listener/ForceHttps.php
14+
15+
-
16+
message: '#^Cannot access offset ''value'' on mixed\.$#'
17+
identifier: offsetAccess.nonOffsetAccessible
18+
count: 2
19+
path: src/Listener/ForceHttps.php
20+
21+
-
22+
message: '#^Method ForceHttpsModule\\Listener\\ForceHttps\:\:isGoingToBeForcedToHttps\(\) should return bool but returns mixed\.$#'
23+
identifier: return.type
24+
count: 1
25+
path: src/Listener/ForceHttps.php
26+
27+
-
28+
message: '#^Parameter \#2 \$haystack of function in_array expects array, mixed given\.$#'
29+
identifier: argument.type
30+
count: 2
31+
path: src/Listener/ForceHttps.php
32+
33+
-
34+
message: '#^Parameter \#2 \.\.\.\$values of function sprintf expects bool\|float\|int\|string\|null, mixed given\.$#'
35+
identifier: argument.type
36+
count: 1
37+
path: src/Listener/ForceHttps.php
38+
39+
-
40+
message: '#^Property ForceHttpsModule\\Listener\\ForceHttps\:\:\$config type has no value type specified in iterable type array\.$#'
41+
identifier: missingType.iterableValue
42+
count: 1
43+
path: src/Listener/ForceHttps.php
44+
45+
-
46+
message: '#^Property ForceHttpsModule\\Listener\\ForceHttps\:\:\$needsWwwPrefix \(bool\) does not accept mixed\.$#'
47+
identifier: assign.propertyType
48+
count: 1
49+
path: src/Listener/ForceHttps.php
50+
51+
-
52+
message: '#^Cannot access offset ''force\-https\-module'' on mixed\.$#'
53+
identifier: offsetAccess.nonOffsetAccessible
54+
count: 1
55+
path: src/Listener/ForceHttpsFactory.php
56+
57+
-
58+
message: '#^Parameter \#1 \$config of class ForceHttpsModule\\Listener\\ForceHttps constructor expects array\<mixed\>, mixed given\.$#'
59+
identifier: argument.type
60+
count: 1
61+
path: src/Listener/ForceHttpsFactory.php
62+
63+
-
64+
message: '#^Call to static method Webmozart\\Assert\\Assert\:\:notNull\(\) with Laminas\\Router\\RouteMatch\|Mezzio\\Router\\RouteResult will always evaluate to true\.$#'
65+
identifier: staticMethod.alreadyNarrowedType
66+
count: 1
67+
path: src/Middleware/ForceHttps.php
68+
69+
-
70+
message: '#^Cannot access offset ''enable'' on mixed\.$#'
71+
identifier: offsetAccess.nonOffsetAccessible
72+
count: 2
73+
path: src/Middleware/ForceHttps.php
74+
75+
-
76+
message: '#^Cannot access offset ''value'' on mixed\.$#'
77+
identifier: offsetAccess.nonOffsetAccessible
78+
count: 2
79+
path: src/Middleware/ForceHttps.php
80+
81+
-
82+
message: '#^Method ForceHttpsModule\\Middleware\\ForceHttps\:\:isGoingToBeForcedToHttps\(\) should return bool but returns mixed\.$#'
83+
identifier: return.type
84+
count: 1
85+
path: src/Middleware/ForceHttps.php
86+
87+
-
88+
message: '#^Parameter \#2 \$haystack of function in_array expects array, mixed given\.$#'
89+
identifier: argument.type
90+
count: 2
91+
path: src/Middleware/ForceHttps.php
92+
93+
-
94+
message: '#^Parameter \#2 \$value of method Psr\\Http\\Message\\MessageInterface\:\:withHeader\(\) expects array\<string\>\|string, mixed given\.$#'
95+
identifier: argument.type
96+
count: 1
97+
path: src/Middleware/ForceHttps.php
98+
99+
-
100+
message: '#^Property ForceHttpsModule\\Middleware\\ForceHttps\:\:\$config type has no value type specified in iterable type array\.$#'
101+
identifier: missingType.iterableValue
102+
count: 1
103+
path: src/Middleware/ForceHttps.php
104+
105+
-
106+
message: '#^Property ForceHttpsModule\\Middleware\\ForceHttps\:\:\$needsWwwPrefix \(bool\) does not accept mixed\.$#'
107+
identifier: assign.propertyType
108+
count: 1
109+
path: src/Middleware/ForceHttps.php
110+
111+
-
112+
message: '#^Cannot access offset ''force\-https\-module'' on mixed\.$#'
113+
identifier: offsetAccess.nonOffsetAccessible
114+
count: 1
115+
path: src/Middleware/ForceHttpsFactory.php
116+
117+
-
118+
message: '#^Parameter \#1 \$config of class ForceHttpsModule\\Middleware\\ForceHttps constructor expects array\<mixed\>, mixed given\.$#'
119+
identifier: argument.type
120+
count: 1
121+
path: src/Middleware/ForceHttpsFactory.php
122+
123+
-
124+
message: '#^Parameter \#2 \$router of class ForceHttpsModule\\Middleware\\ForceHttps constructor expects Mezzio\\Router\\RouterInterface, mixed given\.$#'
125+
identifier: argument.type
126+
count: 1
127+
path: src/Middleware/ForceHttpsFactory.php
128+
129+
-
130+
message: '#^Method ForceHttpsModule\\Module\:\:getConfig\(\) should return array\<mixed\> but returns mixed\.$#'
131+
identifier: return.type
132+
count: 1
133+
path: src/Module.php

0 commit comments

Comments
 (0)