forked from moneyphp/money
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpstan-baseline.neon
332 lines (266 loc) · 11 KB
/
phpstan-baseline.neon
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
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
parameters:
ignoreErrors:
-
message: "#^Property Money\\\\Calculator\\\\BcMathCalculator\\:\\:\\$scale \\(string\\) does not accept int\\.$#"
count: 1
path: src/Calculator/BcMathCalculator.php
-
message: "#^Parameter \\#3 \\$scale of function bccomp expects int, string given\\.$#"
count: 1
path: src/Calculator/BcMathCalculator.php
-
message: "#^Parameter \\#3 \\$scale of function bcadd expects int, string given\\.$#"
count: 1
path: src/Calculator/BcMathCalculator.php
-
message: "#^PHPDoc tag @param has invalid value \\(\\$amount\\)\\: Unexpected token \"\\$amount\", expected type at offset 46$#"
count: 1
path: src/Calculator/BcMathCalculator.php
-
message: "#^PHPDoc tag @param has invalid value \\(\\$subtrahend\\)\\: Unexpected token \"\\$subtrahend\", expected type at offset 68$#"
count: 1
path: src/Calculator/BcMathCalculator.php
-
message: "#^Parameter \\#3 \\$scale of function bcsub expects int, string given\\.$#"
count: 1
path: src/Calculator/BcMathCalculator.php
-
message: "#^Parameter \\#3 \\$scale of function bcmul expects int, string given\\.$#"
count: 2
path: src/Calculator/BcMathCalculator.php
-
message: "#^Method Money\\\\Calculator\\\\BcMathCalculator\\:\\:divide\\(\\) should return string but returns string\\|null\\.$#"
count: 1
path: src/Calculator/BcMathCalculator.php
-
message: "#^Parameter \\#3 \\$scale of function bcdiv expects int, string given\\.$#"
count: 2
path: src/Calculator/BcMathCalculator.php
-
message: "#^Parameter \\#1 \\$number of method Money\\\\Calculator\\\\BcMathCalculator\\:\\:floor\\(\\) expects string, string\\|null given\\.$#"
count: 1
path: src/Calculator/BcMathCalculator.php
-
message: "#^Parameter \\#2 \\$right_operand of function bcdiv expects string, float\\|int\\|string given\\.$#"
count: 1
path: src/Calculator/BcMathCalculator.php
-
message: "#^Parameter \\#2 \\$right_operand of function bcmul expects string, float\\|int\\|string given\\.$#"
count: 1
path: src/Calculator/BcMathCalculator.php
-
message: "#^Method Money\\\\Calculator\\\\BcMathCalculator\\:\\:mod\\(\\) should return string but returns string\\|null\\.$#"
count: 1
path: src/Calculator/BcMathCalculator.php
-
message: "#^Parameter \\#2 \\$right_operand of function bcmod expects string, float\\|int\\|string given\\.$#"
count: 1
path: src/Calculator/BcMathCalculator.php
-
message: "#^Property Money\\\\Calculator\\\\GmpCalculator\\:\\:\\$scale \\(string\\) does not accept int\\.$#"
count: 1
path: src/Calculator/GmpCalculator.php
-
message: "#^Parameter \\#2 \\$pad_length of function str_pad expects int, string given\\.$#"
count: 2
path: src/Calculator/GmpCalculator.php
-
message: "#^PHPDoc tag @param has invalid value \\(\\$number\\)\\: Unexpected token \"\\$number\", expected type at offset 18$#"
count: 1
path: src/Calculator/GmpCalculator.php
-
message: "#^Parameter \\#1 \\$number of method Money\\\\Calculator\\\\GmpCalculator\\:\\:absolute\\(\\) expects string, float\\|int\\|string given\\.$#"
count: 1
path: src/Calculator/GmpCalculator.php
-
message: "#^Method Money\\\\Calculator\\\\GmpCalculator\\:\\:it_divides_bug538\\(\\) has no return typehint specified\\.$#"
count: 1
path: src/Calculator/GmpCalculator.php
-
message: "#^Call to an undefined method Money\\\\Calculator\\\\GmpCalculator\\:\\:assertSame\\(\\)\\.$#"
count: 1
path: src/Calculator/GmpCalculator.php
-
message: "#^Call to an undefined method Money\\\\Calculator\\\\GmpCalculator\\:\\:getCalculator\\(\\)\\.$#"
count: 1
path: src/Calculator/GmpCalculator.php
-
message: "#^Binary operation \"\\+\" between string and string results in an error\\.$#"
count: 1
path: src/Calculator/PhpCalculator.php
-
message: "#^Binary operation \"\\-\" between string and string results in an error\\.$#"
count: 1
path: src/Calculator/PhpCalculator.php
-
message: "#^Binary operation \"\\*\" between string and float\\|int\\|string results in an error\\.$#"
count: 2
path: src/Calculator/PhpCalculator.php
-
message: "#^Parameter \\#1 \\$amount of method Money\\\\Calculator\\\\PhpCalculator\\:\\:assertIntegerBounds\\(\\) expects int, float\\|int given\\.$#"
count: 1
path: src/Calculator/PhpCalculator.php
-
message: "#^Parameter \\#1 \\$amount of method Money\\\\Calculator\\\\PhpCalculator\\:\\:castInteger\\(\\) expects int, float\\|int given\\.$#"
count: 2
path: src/Calculator/PhpCalculator.php
-
message: "#^Parameter \\#1 \\$number of function ceil expects float, string given\\.$#"
count: 2
path: src/Calculator/PhpCalculator.php
-
message: "#^Parameter \\#1 \\$amount of method Money\\\\Calculator\\\\PhpCalculator\\:\\:castInteger\\(\\) expects int, float given\\.$#"
count: 6
path: src/Calculator/PhpCalculator.php
-
message: "#^Parameter \\#1 \\$number of function floor expects float, string given\\.$#"
count: 2
path: src/Calculator/PhpCalculator.php
-
message: "#^Parameter \\#1 \\$amount of method Money\\\\Calculator\\\\PhpCalculator\\:\\:assertIntegerBounds\\(\\) expects int, string given\\.$#"
count: 1
path: src/Calculator/PhpCalculator.php
-
message: "#^Parameter \\#1 \\$number of function round expects float, string given\\.$#"
count: 2
path: src/Calculator/PhpCalculator.php
-
message: "#^Parameter \\#1 \\$number of function round expects float, float\\|int\\|string given\\.$#"
count: 1
path: src/Calculator/PhpCalculator.php
-
message: "#^Method Money\\\\Calculator\\\\PhpCalculator\\:\\:assertIntegerBounds\\(\\) has no return typehint specified\\.$#"
count: 1
path: src/Calculator/PhpCalculator.php
-
message: "#^Method Money\\\\Calculator\\\\PhpCalculator\\:\\:assertInteger\\(\\) has no return typehint specified\\.$#"
count: 1
path: src/Calculator/PhpCalculator.php
-
message: "#^Strict comparison using \\=\\=\\= between int and false will always evaluate to false\\.$#"
count: 1
path: src/Calculator/PhpCalculator.php
-
message: "#^Interface Money\\\\Currencies extends generic interface IteratorAggregate but does not specify its types\\: TKey, TValue$#"
count: 1
path: src/Currencies.php
-
message: "#^Strict comparison using \\=\\=\\= between false and true will always evaluate to false\\.$#"
count: 1
path: src/Currencies/AggregateCurrencies.php
-
message: "#^Parameter \\#1 \\$it of method AppendIterator\\:\\:append\\(\\) expects Iterator, Traversable\\<mixed, mixed\\> given\\.$#"
count: 1
path: src/Currencies/AggregateCurrencies.php
-
message: "#^Parameter \\#1 \\$it of class CallbackFilterIterator constructor expects Iterator, Traversable\\<mixed, mixed\\> given\\.$#"
count: 1
path: src/Currencies/CachedCurrencies.php
-
message: "#^Parameter \\#3 \\$conversionRatio of class Money\\\\CurrencyPair constructor expects float, string given\\.$#"
count: 1
path: src/Exchange/ExchangerExchange.php
-
message: "#^Method Money\\\\Exchange\\\\IndirectExchange\\:\\:registerCalculator\\(\\) has no return typehint specified\\.$#"
count: 1
path: src/Exchange/IndirectExchange.php
-
message: "#^Cannot instantiate interface Money\\\\Calculator\\.$#"
count: 1
path: src/Exchange/IndirectExchange.php
-
message: "#^Parameter \\#3 \\$conversionRatio of class Money\\\\CurrencyPair constructor expects float, string given\\.$#"
count: 1
path: src/Exchange/SwapExchange.php
-
message: "#^Strict comparison using \\=\\=\\= between false and true will always evaluate to false\\.$#"
count: 1
path: src/Formatter/AggregateMoneyFormatter.php
-
message: "#^Parameter \\#3 \\$length of function substr expects int, int\\|false given\\.$#"
count: 1
path: src/Formatter/BitcoinMoneyFormatter.php
-
message: "#^Parameter \\#1 \\$num of method NumberFormatter\\:\\:formatCurrency\\(\\) expects float, string given\\.$#"
count: 1
path: src/Formatter/IntlMoneyFormatter.php
-
message: "#^Method Money\\\\Money\\:\\:assertSameCurrency\\(\\) has no return typehint specified\\.$#"
count: 1
path: src/Money.php
-
message: "#^PHPDoc tag @param for parameter \\$addends with type array\\<Money\\\\Money\\> is incompatible with native type Money\\\\Money\\.$#"
count: 1
path: src/Money.php
-
message: "#^PHPDoc tag @param for parameter \\$subtrahends with type array\\<Money\\\\Money\\> is incompatible with native type Money\\\\Money\\.$#"
count: 1
path: src/Money.php
-
message: "#^Method Money\\\\Money\\:\\:assertOperand\\(\\) has no return typehint specified\\.$#"
count: 1
path: src/Money.php
-
message: "#^Call to function is_object\\(\\) with string will always evaluate to false\\.$#"
count: 1
path: src/Money.php
-
message: "#^Method Money\\\\Money\\:\\:assertRoundingMode\\(\\) has no return typehint specified\\.$#"
count: 1
path: src/Money.php
-
message: "#^Binary operation \"\\*\" between \\(float\\|int\\) and string results in an error\\.$#"
count: 1
path: src/Money.php
-
message: "#^Parameter \\#2 \\$b of method Money\\\\Calculator\\:\\:compare\\(\\) expects string, int given\\.$#"
count: 3
path: src/Money.php
-
message: "#^Method Money\\\\Money\\:\\:registerCalculator\\(\\) has no return typehint specified\\.$#"
count: 1
path: src/Money.php
-
message: "#^Cannot instantiate interface Money\\\\Calculator\\.$#"
count: 1
path: src/Money.php
-
message: "#^Method Money\\\\Number\\:\\:fromString\\(\\) has parameter \\$number with no typehint specified\\.$#"
count: 1
path: src/Number.php
-
message: "#^PHPDoc tag @param has invalid value \\(\\$number\\)\\: Unexpected token \"\\$number\", expected type at offset 18$#"
count: 1
path: src/Number.php
-
message: "#^Strict comparison using \\=\\=\\= between true and false will always evaluate to false\\.$#"
count: 1
path: src/Number.php
-
message: "#^Parameter \\#1 \\$integerPart of class Money\\\\Number constructor expects string, int given\\.$#"
count: 1
path: src/Number.php
-
message: "#^Unreachable statement \\- code above always terminates\\.$#"
count: 1
path: src/Number.php
-
message: "#^Binary operation \"\\+\" between int and 1\\|string results in an error\\.$#"
count: 1
path: src/Number.php
-
message: "#^Method Money\\\\PHPUnit\\\\Comparator\\:\\:assertEquals\\(\\) has no return typehint specified\\.$#"
count: 1
path: src/PHPUnit/Comparator.php
-
message: "#^Strict comparison using \\=\\=\\= between false and true will always evaluate to false\\.$#"
count: 1
path: src/Parser/AggregateMoneyParser.php
-
message: "#^Strict comparison using \\=\\=\\= between true and false will always evaluate to false\\.$#"
count: 1
path: src/Parser/BitcoinMoneyParser.php
-
message: "#^Strict comparison using \\=\\=\\= between false and float will always evaluate to false\\.$#"
count: 1
path: src/Parser/IntlMoneyParser.php