-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathphpstan-baseline.neon
221 lines (178 loc) · 9.38 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
parameters:
ignoreErrors:
-
message: "#^Provide more specific return type \"Swag\\\\PayPal\\\\Checkout\\\\Card\\\\Exception\\\\CardValidationFailedException\" over abstract one$#"
count: 1
path: src/Checkout/Card/Exception/CardValidationFailedException.php
-
message: "#^Call to deprecated method get\\(\\) of class Shopware\\\\Core\\\\Framework\\\\DataAbstractionLayer\\\\Entity:\ntag:v6.7.0 - reason:exception\\-change Thrown exception will change from InternalFieldAccessNotAllowedException to DataAbstractionLayerException$#"
count: 1
path: src/Checkout/ExpressCheckout/Service/ExpressCustomerService.php
-
message: "#^Mixed variable in a `\\$session\\-\\>getFlashBag\\(\\)\\-\\>\\.\\.\\.\\(\\)` can skip important errors\\. Make sure the type is known$#"
count: 1
path: src/Checkout/Payment/Method/PUIHandler.php
-
message: "#^Usage of ALTER TABLE \\.\\. AFTER is disallowed in migrations to avoid implicit temporary table usage\\.$#"
count: 1
path: src/Migration/Migration1706111604AddCustomerIdToVault.php
-
message: "#^Provide more specific return type \"Swag\\\\PayPal\\\\OrdersApi\\\\Builder\\\\Exception\\\\OrderBuildException\" over abstract one$#"
count: 1
path: src/OrdersApi/Builder/Exception/OrderBuildException.php
-
message: "#^Use explicit names over dynamic ones$#"
count: 5
path: src/Pos/Api/Common/PosStruct.php
-
message: "#^Change \"sync\\(\\)\" method visibility to \"protected\" to respect parent method visibility\\.$#"
count: 1
path: src/Pos/MessageQueue/Handler/CloneVisibilityHandler.php
-
message: "#^Change \"sync\\(\\)\" method visibility to \"protected\" to respect parent method visibility\\.$#"
count: 1
path: src/Pos/MessageQueue/Handler/Sync/ImageSyncHandler.php
-
message: "#^Change \"sync\\(\\)\" method visibility to \"protected\" to respect parent method visibility\\.$#"
count: 1
path: src/Pos/MessageQueue/Handler/Sync/InventorySyncHandler.php
-
message: "#^Change \"sync\\(\\)\" method visibility to \"protected\" to respect parent method visibility\\.$#"
count: 1
path: src/Pos/MessageQueue/Handler/Sync/ProductCleanupSyncHandler.php
-
message: "#^Change \"sync\\(\\)\" method visibility to \"protected\" to respect parent method visibility\\.$#"
count: 1
path: src/Pos/MessageQueue/Handler/Sync/ProductSingleSyncHandler.php
-
message: "#^Change \"sync\\(\\)\" method visibility to \"protected\" to respect parent method visibility\\.$#"
count: 1
path: src/Pos/MessageQueue/Handler/Sync/ProductVariantSyncHandler.php
-
message: "#^Provide more specific return type \"Symfony\\\\Component\\\\HttpFoundation\\\\JsonResponse\" over abstract one$#"
count: 5
path: src/Pos/PosSyncController.php
-
message: "#^Array method calls \\[\\$this, \"method\"\\] are not allowed\\. Use explicit method instead to help PhpStorm, PHPStan and Rector understand your code$#"
count: 2
path: src/Pos/Sync/Context/InventoryContextFactory.php
-
message: "#^Array method calls \\[\\$this, \"method\"\\] are not allowed\\. Use explicit method instead to help PhpStorm, PHPStan and Rector understand your code$#"
count: 1
path: src/Pos/Sync/Product/DeletedUpdater.php
-
message: "#^Use explicit names over dynamic ones$#"
count: 7
path: src/RestApi/PayPalApiStruct.php
-
message: "#^Provide more specific return type \"Shopware\\\\Core\\\\System\\\\SalesChannel\\\\NoContentResponse\" over abstract one$#"
count: 3
path: src/Storefront/Controller/PayPalController.php
-
message: "#^Mixed variable in a `\\$checkoutMethod\\-\\>\\.\\.\\.\\(\\)` can skip important errors\\. Make sure the type is known$#"
count: 2
path: src/Storefront/Data/CheckoutDataSubscriber.php
-
message: "#^Mixed variable in a `\\$criteria\\-\\>\\.\\.\\.\\(\\)` can skip important errors\\. Make sure the type is known$#"
count: 1
path: tests/Checkout/PUI/SalesChannel/PUIPaymentInstructionsRouteTest.php
-
message: "#^Class like namespace \"Swag\\\\PayPal\\\\Test\\\\Checkout\\\\Payment\\\\ScheduledTask\" does not follow PSR\\-4 configuration in composer\\.json$#"
count: 1
path: tests/Checkout/PUI/ScheduledTask/PUIInstructionsFetchTaskHandlerTest.php
-
message: "#^Class like namespace \"Swag\\\\PayPal\\\\Test\\\\Checkout\\\\PUI\\\\SalesChannel\" does not follow PSR\\-4 configuration in composer\\.json$#"
count: 1
path: tests/Checkout/PUI/Service/PUIInstructionsFetchServiceTest.php
-
message: "#^Class like namespace \"Swag\\\\PayPal\\\\Test\\\\Checkout\\\\Payment\\\\ScheduledTask\" does not follow PSR\\-4 configuration in composer\\.json$#"
count: 1
path: tests/Checkout/Payment/MessageQueue/TransactionStatusSyncMessageHandlerTest.php
-
message: "#^Class like namespace \"Swag\\\\PayPal\\\\Test\\\\Installment\\\\Banner\" does not follow PSR\\-4 configuration in composer\\.json$#"
count: 1
path: tests/Installment/Banner/Service/BannerDataServiceTest.php
-
message: "#^Mixed variable in a `\\$struct\\-\\>\\.\\.\\.\\(\\)` can skip important errors\\. Make sure the type is known$#"
count: 1
path: tests/OrdersApi/Builder/APMOrderBuilderTest.php
-
message: "#^Mixed variable in a `\\$struct\\?\\-\\>getExperienceContext\\(\\)\\-\\>\\.\\.\\.\\(\\)` can skip important errors\\. Make sure the type is known$#"
count: 1
path: tests/OrdersApi/Builder/APMOrderBuilderTest.php
-
message: "#^Use explicit names over dynamic ones$#"
count: 2
path: tests/OrdersApi/Builder/APMOrderBuilderTest.php
-
message: "#^Provide more specific return type \"GuzzleHttp\\\\Psr7\\\\Response\" over abstract one$#"
count: 1
path: tests/Pos/Mock/Client/GuzzleClientMock.php
-
message: "#^Use explicit names over dynamic ones$#"
count: 1
path: tests/Pos/Mock/MessageBusMock.php
-
message: "#^Parameter \\#1 \\$entity of method Shopware\\\\Core\\\\Framework\\\\DataAbstractionLayer\\\\EntityCollection\\<Shopware\\\\Core\\\\Content\\\\Product\\\\ProductEntity\\>\\:\\:add\\(\\) expects Shopware\\\\Core\\\\Content\\\\Product\\\\ProductEntity, Shopware\\\\Core\\\\Framework\\\\DataAbstractionLayer\\\\Entity given\\.$#"
count: 2
path: tests/Pos/Mock/Repositories/SalesChannelProductRepoMock.php
-
message: "#^Return type \\(Shopware\\\\Core\\\\Framework\\\\DataAbstractionLayer\\\\Search\\\\EntitySearchResult\\<Shopware\\\\Core\\\\Content\\\\Product\\\\SalesChannel\\\\SalesChannelProductCollection\\>\\) of method Swag\\\\PayPal\\\\Test\\\\Pos\\\\Mock\\\\Repositories\\\\SalesChannelProductRepoMock\\:\\:search\\(\\) should be compatible with return type \\(Shopware\\\\Core\\\\Framework\\\\DataAbstractionLayer\\\\Search\\\\EntitySearchResult\\<Shopware\\\\Core\\\\Framework\\\\DataAbstractionLayer\\\\EntityCollection\\>\\) of method Shopware\\\\Core\\\\System\\\\SalesChannel\\\\Entity\\\\SalesChannelRepository\\<Shopware\\\\Core\\\\Framework\\\\DataAbstractionLayer\\\\EntityCollection\\>\\:\\:search\\(\\)$#"
count: 1
path: tests/Pos/Mock/Repositories/SalesChannelProductRepoMock.php
-
message: "#^Use explicit names over dynamic ones$#"
count: 2
path: tests/Pos/Run/PosSyncControllerTest.php
-
message: "#^Class like namespace \"Swag\\\\PayPal\\\\Test\\\\Pos\\\\Util\" does not follow PSR\\-4 configuration in composer\\.json$#"
count: 1
path: tests/Pos/Webhook/InventoryChangedTest.php
-
message: "#^Mixed variable in a `\\$entry\\['request'\\]\\-\\>\\.\\.\\.\\(\\)` can skip important errors\\. Make sure the type is known$#"
count: 1
path: tests/Reporting/ScheduledTask/TurnoverReportingTaskHandlerTest.php
-
message: "#^Mixed variable in a `\\$entry\\['request'\\]\\-\\>getBody\\(\\)\\-\\>\\.\\.\\.\\(\\)` can skip important errors\\. Make sure the type is known$#"
count: 1
path: tests/Reporting/ScheduledTask/TurnoverReportingTaskHandlerTest.php
-
message: "#^Multiple class/interface/trait is not allowed in single file$#"
count: 1
path: tests/RestApi/PayPalApiCollectionTest.php
-
message: "#^Array method calls \\[\\$this, \"method\"\\] are not allowed\\. Use explicit method instead to help PhpStorm, PHPStan and Rector understand your code$#"
count: 1
path: tests/RestApi/PayPalApiStructStructureTest.php
-
message: "#^Use explicit names over dynamic ones$#"
count: 2
path: tests/RestApi/PayPalApiStructStructureTest.php
-
message: "#^Class like namespace \"\" does not follow PSR\\-4 configuration in composer\\.json$#"
count: 1
path: tests/ShopwarePluginClassTest.php
-
message: "#^Use explicit names over dynamic ones$#"
count: 2
path: tests/Storefront/Controller/ApplePayControllerTest.php
-
message: "#^Use explicit names over dynamic ones$#"
count: 4
path: tests/Storefront/Data/CheckoutSubscriberTest.php
-
message: "#^Class like namespace \"Shopware\\\\Core\" does not follow PSR\\-4 configuration in composer\\.json$#"
count: 1
path: tests/TestBootstrapper.php
-
message: "#^Provide more specific return type \"Shopware\\\\Core\\\\Kernel\" over abstract one$#"
count: 1
path: tests/TestBootstrapper.php
-
message: "#^Provide more specific return type \"Shopware\\\\Core\\\\TestBootstrapper\" over abstract one$#"
count: 11
path: tests/TestBootstrapper.php
-
message: "#^Class like namespace \"Swag\\\\PayPal\\\\Test\\\\Util\\\\Lifecycle\" does not follow PSR\\-4 configuration in composer\\.json$#"
count: 1
path: tests/Util/Availability/AvailabilityServiceTest.php