-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathphpstan.neon
More file actions
222 lines (185 loc) · 6.85 KB
/
phpstan.neon
File metadata and controls
222 lines (185 loc) · 6.85 KB
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
217
218
219
220
221
222
includes:
- %rootDir%/conf/bleedingEdge.neon
- %rootDir%/../phpstan-strict-rules/rules.neon
- %rootDir%/../../shipmonk/phpstan-rules/rules.neon
parameters:
level: max
scanDirectories:
- %rootDir%/../../squizlabs/php_codesniffer/src
ignoreErrors:
# Common for tests
-
message: '#^Cannot access offset .+\.$#'
count: 54
path: tests/run-tests.php
# Baseline
-
rawMessage: 'Parameter #1 $errors of method Forrest79\PhpCsIgnores\File::setErrors() expects array<int, array<int, list<array<string, mixed>>>>, array<non-empty-array<non-empty-list<non-empty-array<mixed>>>> given.'
identifier: argument.type
count: 1
path: src/File.php
-
rawMessage: 'Parameter #1 $warnings of method Forrest79\PhpCsIgnores\File::setWarnings() expects array<int, array<int, list<array<string, mixed>>>>, array<non-empty-array<list<non-empty-array<mixed>>>> given.'
identifier: argument.type
count: 1
path: src/File.php
-
message: '#^Parameter \#2 \$values of function vsprintf expects array\<bool\|float\|int\|string\|null\>, array\<mixed\> given\.$#'
identifier: argument.type
count: 1
path: src/File.php
-
message: '#^Cannot access offset 0 on mixed\.$#'
identifier: offsetAccess.nonOffsetAccessible
count: 1
path: src/PhpCsInjections.php
-
message: '#^Cannot access offset 1 on mixed\.$#'
identifier: offsetAccess.nonOffsetAccessible
count: 1
path: src/PhpCsInjections.php
-
message: '#^Comparison mixed \> int contains non\-comparable type, only int\|float\|string\|DateTimeInterface or comparable tuple is allowed\.$#'
identifier: shipmonk.comparingNonComparableTypes
count: 2
path: src/PhpCsInjections.php
-
message: '#^Constant PHP_CODESNIFFER_VERBOSITY not found\.$#'
identifier: constant.notFound
count: 2
path: src/PhpCsInjections.php
-
message: '#^Method Forrest79\\PhpCsIgnores\\PhpCsInjections\:\:mkdir\(\) should return bool but returns mixed\.$#'
identifier: return.type
count: 1
path: src/PhpCsInjections.php
-
message: '#^Method Forrest79\\PhpCsIgnores\\PhpCsInjections\:\:rename\(\) should return bool but returns mixed\.$#'
identifier: return.type
count: 1
path: src/PhpCsInjections.php
-
message: '#^Method Forrest79\\PhpCsIgnores\\PhpCsInjections\:\:rmdir\(\) should return bool but returns mixed\.$#'
identifier: return.type
count: 1
path: src/PhpCsInjections.php
-
message: '#^Method Forrest79\\PhpCsIgnores\\PhpCsInjections\:\:stream_metadata\(\) should return bool but returns mixed\.$#'
identifier: return.type
count: 4
path: src/PhpCsInjections.php
-
message: '#^Method Forrest79\\PhpCsIgnores\\PhpCsInjections\:\:stream_tell\(\) should return int but returns int\|(false|bool)\.$#'
identifier: return.type
count: 1
path: src/PhpCsInjections.php
-
message: '#^Method Forrest79\\PhpCsIgnores\\PhpCsInjections\:\:unlink\(\) should return bool but returns mixed\.$#'
identifier: return.type
count: 1
path: src/PhpCsInjections.php
-
message: '#^Missing native return typehint array\|(false|bool)$#'
identifier: shipmonk.missingNativeReturnTypehint
count: 1
path: src/PhpCsInjections.php
-
message: '#^Missing native return typehint int\|(false|bool)$#'
identifier: shipmonk.missingNativeReturnTypehint
count: 1
path: src/PhpCsInjections.php
-
message: '#^Missing native return typehint mixed$#'
identifier: shipmonk.missingNativeReturnTypehint
count: 2
path: src/PhpCsInjections.php
-
message: '#^Missing native return typehint string\|(false|bool)#'
identifier: shipmonk.missingNativeReturnTypehint
count: 2
path: src/PhpCsInjections.php
-
message: '#^Only booleans are allowed in a ternary operator condition, int\<0, 1\> given\.$#'
identifier: ternary.condNotBoolean
count: 1
path: src/PhpCsInjections.php
-
message: '#^Only booleans are allowed in a ternary operator condition, int\<0, 2\> given\.$#'
identifier: ternary.condNotBoolean
count: 1
path: src/PhpCsInjections.php
-
message: '#^Parameter \#1 \$stream of function fclose expects resource, resource\|null given\.$#'
identifier: argument.type
count: 1
path: src/PhpCsInjections.php
-
message: '#^Parameter \#1 \$stream of function feof expects resource, resource\|null given\.$#'
identifier: argument.type
count: 1
path: src/PhpCsInjections.php
-
message: '#^Parameter \#1 \$stream of function fflush expects resource, resource\|null given\.$#'
identifier: argument.type
count: 1
path: src/PhpCsInjections.php
-
message: '#^Parameter \#1 \$stream of function flock expects resource, resource\|null given\.$#'
identifier: argument.type
count: 1
path: src/PhpCsInjections.php
-
message: '#^Parameter \#1 \$stream of function fread expects resource, resource\|null given\.$#'
identifier: argument.type
count: 1
path: src/PhpCsInjections.php
-
message: '#^Parameter \#1 \$stream of function fseek expects resource, resource\|null given\.$#'
identifier: argument.type
count: 1
path: src/PhpCsInjections.php
-
message: '#^Parameter \#1 \$stream of function fstat expects resource, resource\|null given\.$#'
identifier: argument.type
count: 1
path: src/PhpCsInjections.php
-
message: '#^Parameter \#1 \$stream of function ftell expects resource, resource\|null given\.$#'
identifier: argument.type
count: 1
path: src/PhpCsInjections.php
-
message: '#^Parameter \#1 \$stream of function ftruncate expects resource, resource\|null given\.$#'
identifier: argument.type
count: 1
path: src/PhpCsInjections.php
-
message: '#^Parameter \#1 \$stream of function fwrite expects resource, resource\|null given\.$#'
identifier: argument.type
count: 1
path: src/PhpCsInjections.php
-
message: '#^Parameter \#2 \$code of callable callable\(string, string\)\: string expects string, mixed given\.$#'
identifier: argument.type
count: 1
path: src/PhpCsInjections.php
-
message: '#^Parameter \#2 \$length of function fread expects int\<1, max\>, int given\.$#'
identifier: argument.type
count: 1
path: src/PhpCsInjections.php
-
message: '#^Parameter \#2 \$size of function ftruncate expects int\<0, max\>, int given\.$#'
identifier: argument.type
count: 1
path: src/PhpCsInjections.php
-
message: '#^Property Forrest79\\PhpCsIgnores\\PhpCsInjections\:\:\$handle \(resource\|null\) does not accept mixed\.$#'
identifier: assign.propertyType
count: 2
path: src/PhpCsInjections.php
-
message: '#^Trying to invoke string but it might not be a callable\.$#'
identifier: callable.nonCallable
count: 1
path: src/PhpCsInjections.php