-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathphpstan-baseline.neon
More file actions
199 lines (167 loc) · 5.26 KB
/
phpstan-baseline.neon
File metadata and controls
199 lines (167 loc) · 5.26 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
parameters:
ignoreErrors:
-
message: '#^Foreach overwrites \$i with its key variable\.$#'
identifier: foreach.keyOverwrite
count: 1
path: examples/read.php
-
message: '#^Cannot cast mixed to int\.$#'
identifier: cast.int
count: 1
path: src/ShapeFile.php
-
message: '#^Casting to int something that''s already int\.$#'
identifier: cast.useless
count: 1
path: src/ShapeFile.php
-
message: '#^Loose comparison via "\!\=" is not allowed\.$#'
identifier: notEqual.notAllowed
count: 3
path: src/ShapeFile.php
-
message: '#^Loose comparison via "\=\=" is not allowed\.$#'
identifier: equal.notAllowed
count: 1
path: src/ShapeFile.php
-
message: '#^Only booleans are allowed in a negated boolean, resource\|false given\.$#'
identifier: booleanNot.exprNotBoolean
count: 1
path: src/ShapeFile.php
-
message: '#^Only numeric types are allowed in \+, int\|null given on the left side\.$#'
identifier: plus.leftNonNumeric
count: 2
path: src/ShapeFile.php
-
message: '#^Only numeric types are allowed in \+, int\|null given on the right side\.$#'
identifier: plus.rightNonNumeric
count: 1
path: src/ShapeFile.php
-
message: '#^Parameter \#1 \$stream of function feof expects resource, resource\|false given\.$#'
identifier: argument.type
count: 1
path: src/ShapeFile.php
-
message: '#^Parameter \#1 \$string of function strtoupper expects string, mixed given\.$#'
identifier: argument.type
count: 1
path: src/ShapeFile.php
-
message: '#^Parameter \#1 \$string of function substr expects string, string\|false given\.$#'
identifier: argument.type
count: 6
path: src/ShapeFile.php
-
message: '#^Parameter \#1 \$value of static method PhpMyAdmin\\ShapeFile\\Util\:\:packDouble\(\) expects float, mixed given\.$#'
identifier: argument.type
count: 1
path: src/ShapeFile.php
-
message: '#^Parameter \#2 \$length of function fread expects int\<1, max\>, int\<0, max\> given\.$#'
identifier: argument.type
count: 1
path: src/ShapeFile.php
-
message: '#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\.$#'
identifier: foreach.nonIterable
count: 4
path: src/ShapeRecord.php
-
message: '#^Binary operation "\*" between mixed and 2 results in an error\.$#'
identifier: binaryOp.invalid
count: 1
path: src/ShapeRecord.php
-
message: '#^Binary operation "\+" between 1 and mixed results in an error\.$#'
identifier: binaryOp.invalid
count: 2
path: src/ShapeRecord.php
-
message: '#^Cannot access an offset on mixed\.$#'
identifier: offsetAccess.nonOffsetAccessible
count: 4
path: src/ShapeRecord.php
-
message: '#^Cannot access offset ''points'' on mixed\.$#'
identifier: offsetAccess.nonOffsetAccessible
count: 11
path: src/ShapeRecord.php
-
message: '#^Cannot access offset int on mixed\.$#'
identifier: offsetAccess.nonOffsetAccessible
count: 8
path: src/ShapeRecord.php
-
message: '#^Cannot access offset int\<\-1, max\> on mixed\.$#'
identifier: offsetAccess.nonOffsetAccessible
count: 2
path: src/ShapeRecord.php
-
message: '#^Cannot access offset int\<0, max\> on mixed\.$#'
identifier: offsetAccess.nonOffsetAccessible
count: 12
path: src/ShapeRecord.php
-
message: '#^Cannot access offset int\<1, max\> on mixed\.$#'
identifier: offsetAccess.nonOffsetAccessible
count: 2
path: src/ShapeRecord.php
-
message: '#^Cannot access offset string on mixed\.$#'
identifier: offsetAccess.nonOffsetAccessible
count: 4
path: src/ShapeRecord.php
-
message: '#^Cannot call method hasMeasure\(\) on PhpMyAdmin\\ShapeFile\\ShapeFile\|null\.$#'
identifier: method.nonObject
count: 2
path: src/ShapeRecord.php
-
message: '#^Cannot call method readSHP\(\) on PhpMyAdmin\\ShapeFile\\ShapeFile\|null\.$#'
identifier: method.nonObject
count: 1
path: src/ShapeRecord.php
-
message: '#^Cannot cast mixed to int\.$#'
identifier: cast.int
count: 2
path: src/ShapeRecord.php
-
message: '#^Cannot use \-\- on mixed\.$#'
identifier: preDec.type
count: 2
path: src/ShapeRecord.php
-
message: '#^Parameter \#1 \$data of method PhpMyAdmin\\ShapeFile\\ShapeRecord\:\:savePoint\(\) expects array\<mixed\>, mixed given\.$#'
identifier: argument.type
count: 2
path: src/ShapeRecord.php
-
message: '#^Parameter \#1 \$value of function count expects array\|Countable, mixed given\.$#'
identifier: argument.type
count: 16
path: src/ShapeRecord.php
-
message: '#^Parameter \#1 \$value of static method PhpMyAdmin\\ShapeFile\\Util\:\:packDouble\(\) expects float, mixed given\.$#'
identifier: argument.type
count: 11
path: src/ShapeRecord.php
-
message: '#^Possibly invalid array key type mixed\.$#'
identifier: offsetAccess.invalidOffset
count: 2
path: src/ShapeRecord.php
-
message: '#^Property PhpMyAdmin\\ShapeFile\\ShapeRecord\:\:\$size \(int\) does not accept \(float\|int\)\.$#'
identifier: assign.propertyType
count: 1
path: src/ShapeRecord.php
-
message: '#^Parameter \#1 \$value of function count expects array\|Countable, mixed given\.$#'
identifier: argument.type
count: 1
path: tests/ShapeFileTest.php