Skip to content

Commit d9656fb

Browse files
committed
update baseline
1 parent c32ac96 commit d9656fb

File tree

4 files changed

+230
-50
lines changed

4 files changed

+230
-50
lines changed

phpstan.src.baseline.neon

Lines changed: 168 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,6 @@ parameters:
4545
count: 1
4646
path: src/Internal/Decorator/StorageServiceLockDecorator.php
4747

48-
-
49-
message: "#^Parameter \\#1 \\$inputs of method Bavix\\\\Wallet\\\\Internal\\\\Decorator\\\\StorageServiceLockDecorator\\:\\:multiSync\\(\\) expects non\\-empty\\-array\\<non\\-empty\\-string, float\\|int\\|non\\-empty\\-string\\>, non\\-empty\\-array\\<non\\-empty\\-string, string\\> given\\.$#"
50-
count: 1
51-
path: src/Internal/Decorator/StorageServiceLockDecorator.php
52-
5348
-
5449
message: "#^Parameter \\#1 \\$name of method Illuminate\\\\Database\\\\ConnectionResolverInterface\\:\\:connection\\(\\) expects string\\|null, mixed given\\.$#"
5550
count: 1
@@ -60,18 +55,78 @@ parameters:
6055
count: 1
6156
path: src/Internal/Service/LockService.php
6257

58+
-
59+
message: "#^Method Bavix\\\\Wallet\\\\Internal\\\\Service\\\\MathService\\:\\:abs\\(\\) should return non\\-empty\\-string but returns string\\.$#"
60+
count: 1
61+
path: src/Internal/Service/MathService.php
62+
63+
-
64+
message: "#^Method Bavix\\\\Wallet\\\\Internal\\\\Service\\\\MathService\\:\\:add\\(\\) should return non\\-empty\\-string but returns string\\.$#"
65+
count: 1
66+
path: src/Internal/Service/MathService.php
67+
68+
-
69+
message: "#^Method Bavix\\\\Wallet\\\\Internal\\\\Service\\\\MathService\\:\\:ceil\\(\\) should return non\\-empty\\-string but returns string\\.$#"
70+
count: 1
71+
path: src/Internal/Service/MathService.php
72+
73+
-
74+
message: "#^Method Bavix\\\\Wallet\\\\Internal\\\\Service\\\\MathService\\:\\:div\\(\\) should return non\\-empty\\-string but returns string\\.$#"
75+
count: 1
76+
path: src/Internal/Service/MathService.php
77+
78+
-
79+
message: "#^Method Bavix\\\\Wallet\\\\Internal\\\\Service\\\\MathService\\:\\:floor\\(\\) should return non\\-empty\\-string but returns string\\.$#"
80+
count: 1
81+
path: src/Internal/Service/MathService.php
82+
83+
-
84+
message: "#^Method Bavix\\\\Wallet\\\\Internal\\\\Service\\\\MathService\\:\\:mul\\(\\) should return non\\-empty\\-string but returns string\\.$#"
85+
count: 1
86+
path: src/Internal/Service/MathService.php
87+
88+
-
89+
message: "#^Method Bavix\\\\Wallet\\\\Internal\\\\Service\\\\MathService\\:\\:negative\\(\\) should return non\\-empty\\-string but returns string\\.$#"
90+
count: 1
91+
path: src/Internal/Service/MathService.php
92+
93+
-
94+
message: "#^Method Bavix\\\\Wallet\\\\Internal\\\\Service\\\\MathService\\:\\:pow\\(\\) should return non\\-empty\\-string but returns string\\.$#"
95+
count: 1
96+
path: src/Internal/Service/MathService.php
97+
98+
-
99+
message: "#^Method Bavix\\\\Wallet\\\\Internal\\\\Service\\\\MathService\\:\\:round\\(\\) should return non\\-empty\\-string but returns string\\.$#"
100+
count: 1
101+
path: src/Internal/Service/MathService.php
102+
103+
-
104+
message: "#^Method Bavix\\\\Wallet\\\\Internal\\\\Service\\\\MathService\\:\\:sub\\(\\) should return non\\-empty\\-string but returns string\\.$#"
105+
count: 1
106+
path: src/Internal/Service/MathService.php
107+
63108
-
64109
message: "#^Method Bavix\\\\Wallet\\\\Internal\\\\Service\\\\StateService\\:\\:get\\(\\) should return string\\|null but returns mixed\\.$#"
65110
count: 1
66111
path: src/Internal/Service/StateService.php
67112

68113
-
69-
message: "#^Method Bavix\\\\Wallet\\\\Internal\\\\Service\\\\StorageService\\:\\:get\\(\\) should return non\\-empty\\-string but returns string\\.$#"
114+
message: "#^Method Bavix\\\\Wallet\\\\Internal\\\\Service\\\\StorageService\\:\\:increase\\(\\) should return non\\-empty\\-string but returns string\\.$#"
70115
count: 1
71116
path: src/Internal/Service/StorageService.php
72117

73118
-
74-
message: "#^Method Bavix\\\\Wallet\\\\Internal\\\\Service\\\\StorageService\\:\\:increase\\(\\) should return non\\-empty\\-string but returns string\\.$#"
119+
message: "#^Parameter \\#1 \\$number of method Bavix\\\\Wallet\\\\Internal\\\\Service\\\\MathServiceInterface\\:\\:round\\(\\) expects float\\|int\\|non\\-empty\\-string, float\\|int\\|string given\\.$#"
120+
count: 1
121+
path: src/Internal/Service/StorageService.php
122+
123+
-
124+
message: "#^Parameter \\#1 \\$uuids of method Bavix\\\\Wallet\\\\Internal\\\\Service\\\\StorageService\\:\\:multiGet\\(\\) expects non\\-empty\\-array\\<non\\-empty\\-string\\>, non\\-empty\\-array\\<int, string\\> given\\.$#"
125+
count: 1
126+
path: src/Internal/Service/StorageService.php
127+
128+
-
129+
message: "#^Parameter \\#2 \\$second of method Bavix\\\\Wallet\\\\Internal\\\\Service\\\\MathServiceInterface\\:\\:add\\(\\) expects float\\|int\\|non\\-empty\\-string, float\\|int\\|string given\\.$#"
75130
count: 1
76131
path: src/Internal/Service/StorageService.php
77132

@@ -80,6 +135,16 @@ parameters:
80135
count: 1
81136
path: src/Models/Transaction.php
82137

138+
-
139+
message: "#^Parameter \\#1 \\$first of method Bavix\\\\Wallet\\\\Internal\\\\Service\\\\MathService\\:\\:div\\(\\) expects float\\|int\\|non\\-empty\\-string, string given\\.$#"
140+
count: 1
141+
path: src/Models/Transaction.php
142+
143+
-
144+
message: "#^Parameter \\#1 \\$first of method Bavix\\\\Wallet\\\\Internal\\\\Service\\\\MathService\\:\\:mul\\(\\) expects float\\|int\\|non\\-empty\\-string, float\\|int\\|string given\\.$#"
145+
count: 1
146+
path: src/Models/Transaction.php
147+
83148
-
84149
message: "#^Parameter \\#1 \\$related of method Illuminate\\\\Database\\\\Eloquent\\\\Model\\:\\:belongsTo\\(\\) expects class\\-string\\<Illuminate\\\\Database\\\\Eloquent\\\\Model\\>, mixed given\\.$#"
85150
count: 1
@@ -170,6 +235,31 @@ parameters:
170235
count: 2
171236
path: src/Models/Wallet.php
172237

238+
-
239+
message: "#^Parameter \\#1 \\$first of method Bavix\\\\Wallet\\\\Internal\\\\Service\\\\MathService\\:\\:add\\(\\) expects float\\|int\\|non\\-empty\\-string, int\\|string given\\.$#"
240+
count: 1
241+
path: src/Models/Wallet.php
242+
243+
-
244+
message: "#^Parameter \\#1 \\$first of method Bavix\\\\Wallet\\\\Internal\\\\Service\\\\MathService\\:\\:mul\\(\\) expects float\\|int\\|non\\-empty\\-string, float\\|int\\|string given\\.$#"
245+
count: 7
246+
path: src/Models/Wallet.php
247+
248+
-
249+
message: "#^Parameter \\#1 \\$first of method Bavix\\\\Wallet\\\\Internal\\\\Service\\\\MathService\\:\\:mul\\(\\) expects float\\|int\\|non\\-empty\\-string, int\\|string given\\.$#"
250+
count: 1
251+
path: src/Models/Wallet.php
252+
253+
-
254+
message: "#^Parameter \\#1 \\$first of method Bavix\\\\Wallet\\\\Internal\\\\Service\\\\MathService\\:\\:sub\\(\\) expects float\\|int\\|non\\-empty\\-string, int\\|string given\\.$#"
255+
count: 1
256+
path: src/Models/Wallet.php
257+
258+
-
259+
message: "#^Parameter \\#1 \\$number of method Bavix\\\\Wallet\\\\Internal\\\\Service\\\\MathService\\:\\:negative\\(\\) expects float\\|int\\|non\\-empty\\-string, string given\\.$#"
260+
count: 1
261+
path: src/Models/Wallet.php
262+
173263
-
174264
message: "#^Parameter \\#1 \\$related of method Illuminate\\\\Database\\\\Eloquent\\\\Model\\:\\:hasMany\\(\\) expects class\\-string\\<Illuminate\\\\Database\\\\Eloquent\\\\Model\\>, mixed given\\.$#"
175265
count: 6
@@ -190,6 +280,21 @@ parameters:
190280
count: 2
191281
path: src/Models/Wallet.php
192282

283+
-
284+
message: "#^Parameter \\#2 \\$second of method Bavix\\\\Wallet\\\\Internal\\\\Service\\\\MathService\\:\\:add\\(\\) expects float\\|int\\|non\\-empty\\-string, string given\\.$#"
285+
count: 5
286+
path: src/Models/Wallet.php
287+
288+
-
289+
message: "#^Parameter \\#2 \\$second of method Bavix\\\\Wallet\\\\Internal\\\\Service\\\\MathService\\:\\:compare\\(\\) expects float\\|int\\|non\\-empty\\-string, float\\|int\\|string given\\.$#"
290+
count: 1
291+
path: src/Models/Wallet.php
292+
293+
-
294+
message: "#^Parameter \\#2 \\$second of method Bavix\\\\Wallet\\\\Internal\\\\Service\\\\MathService\\:\\:mul\\(\\) expects float\\|int\\|non\\-empty\\-string, string given\\.$#"
295+
count: 1
296+
path: src/Models/Wallet.php
297+
193298
-
194299
message: "#^Parameter \\#2 \\$value of method Bavix\\\\Wallet\\\\Services\\\\RegulatorService\\:\\:increase\\(\\) expects float\\|int\\|non\\-empty\\-string, string given\\.$#"
195300
count: 1
@@ -215,11 +320,21 @@ parameters:
215320
count: 2
216321
path: src/Models/Wallet.php
217322

323+
-
324+
message: "#^Parameter \\#2 \\$second of method Bavix\\\\Wallet\\\\Internal\\\\Service\\\\MathServiceInterface\\:\\:mul\\(\\) expects float\\|int\\|non\\-empty\\-string, int\\|string given\\.$#"
325+
count: 1
326+
path: src/Objects/Cart.php
327+
218328
-
219329
message: "#^Parameter \\#1 \\$objects \\(non\\-empty\\-array\\<Bavix\\\\Wallet\\\\Internal\\\\Dto\\\\TransactionDtoInterface\\|Bavix\\\\Wallet\\\\Internal\\\\Dto\\\\TransferDtoInterface\\>\\) of method Bavix\\\\Wallet\\\\Services\\\\AssistantService\\:\\:getUuids\\(\\) should be compatible with parameter \\$objects \\(non\\-empty\\-array\\<string\\>\\) of method Bavix\\\\Wallet\\\\Services\\\\AssistantServiceInterface\\:\\:getUuids\\(\\)$#"
220330
count: 1
221331
path: src/Services/AssistantService.php
222332

333+
-
334+
message: "#^Parameter \\#2 \\$second of method Bavix\\\\Wallet\\\\Internal\\\\Service\\\\MathServiceInterface\\:\\:add\\(\\) expects float\\|int\\|non\\-empty\\-string, float\\|int\\|string given\\.$#"
335+
count: 1
336+
path: src/Services/AssistantService.php
337+
223338
-
224339
message: "#^Parameter \\#1 \\$objects of method Bavix\\\\Wallet\\\\Services\\\\AssistantServiceInterface\\:\\:getUuids\\(\\) expects non\\-empty\\-array\\<string\\>, non\\-empty\\-array\\<Bavix\\\\Wallet\\\\Internal\\\\Dto\\\\TransactionDtoInterface\\> given\\.$#"
225340
count: 1
@@ -256,12 +371,52 @@ parameters:
256371
path: src/Services/BookkeeperService.php
257372

258373
-
259-
message: "#^Method Bavix\\\\Wallet\\\\Services\\\\RegulatorService\\:\\:amount\\(\\) should return non\\-empty\\-string but returns string\\.$#"
374+
message: "#^Parameter \\#1 \\$first of method Bavix\\\\Wallet\\\\Internal\\\\Service\\\\MathService\\:\\:compare\\(\\) expects float\\|int\\|non\\-empty\\-string, float\\|int\\|string given\\.$#"
375+
count: 2
376+
path: src/Services/ConsistencyService.php
377+
378+
-
379+
message: "#^Parameter \\#1 \\$first of method Bavix\\\\Wallet\\\\Internal\\\\Service\\\\MathServiceInterface\\:\\:compare\\(\\) expects float\\|int\\|non\\-empty\\-string, float\\|int\\|string given\\.$#"
380+
count: 2
381+
path: src/Services/ConsistencyService.php
382+
383+
-
384+
message: "#^Parameter \\#2 \\$second of method Bavix\\\\Wallet\\\\Internal\\\\Service\\\\MathService\\:\\:compare\\(\\) expects float\\|int\\|non\\-empty\\-string, float\\|int\\|string given\\.$#"
385+
count: 1
386+
path: src/Services/ConsistencyService.php
387+
388+
-
389+
message: "#^Parameter \\#2 \\$second of method Bavix\\\\Wallet\\\\Internal\\\\Service\\\\MathServiceInterface\\:\\:add\\(\\) expects float\\|int\\|non\\-empty\\-string, string given\\.$#"
390+
count: 1
391+
path: src/Services/ConsistencyService.php
392+
393+
-
394+
message: "#^Parameter \\#2 \\$second of method Bavix\\\\Wallet\\\\Internal\\\\Service\\\\MathServiceInterface\\:\\:sub\\(\\) expects float\\|int\\|non\\-empty\\-string, float\\|int\\|string given\\.$#"
395+
count: 1
396+
path: src/Services/ConsistencyService.php
397+
398+
-
399+
message: "#^Parameter \\#1 \\$first of method Bavix\\\\Wallet\\\\Internal\\\\Service\\\\MathServiceInterface\\:\\:sub\\(\\) expects float\\|int\\|non\\-empty\\-string, float\\|int\\|string given\\.$#"
400+
count: 1
401+
path: src/Services/PrepareService.php
402+
403+
-
404+
message: "#^Parameter \\#1 \\$number of method Bavix\\\\Wallet\\\\Internal\\\\Service\\\\MathServiceInterface\\:\\:negative\\(\\) expects float\\|int\\|non\\-empty\\-string, float\\|int\\|string given\\.$#"
405+
count: 1
406+
path: src/Services/PrepareService.php
407+
408+
-
409+
message: "#^Parameter \\#2 \\$second of method Bavix\\\\Wallet\\\\Internal\\\\Service\\\\MathServiceInterface\\:\\:add\\(\\) expects float\\|int\\|non\\-empty\\-string, string given\\.$#"
410+
count: 1
411+
path: src/Services/PrepareService.php
412+
413+
-
414+
message: "#^Parameter \\#1 \\$first of method Bavix\\\\Wallet\\\\Internal\\\\Service\\\\MathServiceInterface\\:\\:add\\(\\) expects float\\|int\\|non\\-empty\\-string, string given\\.$#"
260415
count: 1
261416
path: src/Services/RegulatorService.php
262417

263418
-
264-
message: "#^Method Bavix\\\\Wallet\\\\Services\\\\RegulatorService\\:\\:diff\\(\\) should return non\\-empty\\-string but returns string\\.$#"
419+
message: "#^Parameter \\#1 \\$number of method Bavix\\\\Wallet\\\\Internal\\\\Service\\\\MathServiceInterface\\:\\:negative\\(\\) expects float\\|int\\|non\\-empty\\-string, float\\|int\\|string given\\.$#"
265420
count: 1
266421
path: src/Services/RegulatorService.php
267422

@@ -286,19 +441,14 @@ parameters:
286441
path: src/Services/RegulatorService.php
287442

288443
-
289-
message: "#^Parameter \\#2 \\$value of method Bavix\\\\Wallet\\\\Internal\\\\Service\\\\StorageServiceInterface\\:\\:sync\\(\\) expects float\\|int\\|non\\-empty\\-string, string given\\.$#"
290-
count: 2
291-
path: src/Services/RegulatorService.php
292-
293-
-
294-
message: "#^Parameter \\#2 \\$value of method Bavix\\\\Wallet\\\\Services\\\\RegulatorService\\:\\:increase\\(\\) expects float\\|int\\|non\\-empty\\-string, string given\\.$#"
444+
message: "#^PHPDoc tag @return with type string is incompatible with native type bool\\.$#"
295445
count: 1
296-
path: src/Services/RegulatorService.php
446+
path: src/Services/RegulatorServiceInterface.php
297447

298448
-
299-
message: "#^PHPDoc tag @return with type string is incompatible with native type bool\\.$#"
449+
message: "#^Parameter \\#1 \\$first of method Bavix\\\\Wallet\\\\Internal\\\\Service\\\\MathServiceInterface\\:\\:mul\\(\\) expects float\\|int\\|non\\-empty\\-string, float\\|int\\|string given\\.$#"
300450
count: 1
301-
path: src/Services/RegulatorServiceInterface.php
451+
path: src/Services/TaxService.php
302452

303453
-
304454
message: "#^Parameter \\#2 \\$value of method Bavix\\\\Wallet\\\\Services\\\\RegulatorServiceInterface\\:\\:increase\\(\\) expects float\\|int\\|non\\-empty\\-string, string given\\.$#"

phpstan.tests.baseline.neon

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,26 @@ parameters:
1010
count: 1
1111
path: tests/Infra/Models/Item.php
1212

13+
-
14+
message: "#^Parameter \\#1 \\$first of method Bavix\\\\Wallet\\\\Internal\\\\Service\\\\MathServiceInterface\\:\\:mul\\(\\) expects float\\|int\\|non\\-empty\\-string, float\\|int\\|string given\\.$#"
15+
count: 1
16+
path: tests/Infra/Services/ExchangeUsdToBtcService.php
17+
18+
-
19+
message: "#^Parameter \\#1 \\$first of method Bavix\\\\Wallet\\\\Internal\\\\Service\\\\MathServiceInterface\\:\\:mul\\(\\) expects float\\|int\\|non\\-empty\\-string, float\\|int\\|string given\\.$#"
20+
count: 1
21+
path: tests/Infra/Services/MyExchangeService.php
22+
23+
-
24+
message: "#^Parameter \\#2 \\$second of method Bavix\\\\Wallet\\\\Internal\\\\Service\\\\MathServiceInterface\\:\\:div\\(\\) expects float\\|int\\|non\\-empty\\-string, float\\|int\\|string given\\.$#"
25+
count: 1
26+
path: tests/Infra/Services/MyExchangeService.php
27+
28+
-
29+
message: "#^Parameter \\#2 \\$second of method Bavix\\\\Wallet\\\\Internal\\\\Service\\\\MathServiceInterface\\:\\:mul\\(\\) expects float\\|int\\|non\\-empty\\-string, float\\|int\\|string given\\.$#"
30+
count: 1
31+
path: tests/Infra/Services/MyExchangeService.php
32+
1333
-
1434
message: "#^Class Bavix\\\\Wallet\\\\Test\\\\Infra\\\\TestCase is not final\\.$#"
1535
count: 1
@@ -20,7 +40,17 @@ parameters:
2040
count: 1
2141
path: tests/Infra/TestCase.php
2242

43+
-
44+
message: "#^Parameter \\#1 \\$first of method Bavix\\\\Wallet\\\\Internal\\\\Service\\\\MathService\\:\\:compare\\(\\) expects float\\|int\\|non\\-empty\\-string, string given\\.$#"
45+
count: 2
46+
path: tests/Units/Domain/CartTest.php
47+
2348
-
2449
message: "#^Unreachable statement \\- code above always terminates\\.$#"
2550
count: 1
2651
path: tests/Units/Service/AtomicServiceTest.php
52+
53+
-
54+
message: "#^Parameter \\#1 \\$number of method Bavix\\\\Wallet\\\\Internal\\\\Service\\\\MathServiceInterface\\:\\:abs\\(\\) expects float\\|int\\|non\\-empty\\-string, string given\\.$#"
55+
count: 1
56+
path: tests/Units/Service/MathTest.php

0 commit comments

Comments
 (0)