-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpsalm-report.json
297 lines (297 loc) · 16.6 KB
/
psalm-report.json
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
{
"error": [
{
"severity": "error",
"line_from": 93,
"line_to": 93,
"type": "InvalidArgument",
"message": "Argument 1 of SprykerShop\\Yves\\CartPage\\Dependency\\Client\\CartPageToProductStorageClientInterface::getBulkProductAbstractStorageDataByProductAbstractIdsAndLocaleName expects array<array-key, int>, array<int, int|null> provided",
"file_name": "vendor/spryker/spryker-shop/Bundles/CartPage/src/SprykerShop/Yves/CartPage/Mapper/CartItemsAttributeMapper.php",
"snippet": " ->getBulkProductAbstractStorageDataByProductAbstractIdsAndLocaleName($productAbstractIds, $localeName);",
"selected_text": "$productAbstractIds",
"error_level": 6,
"shortcode": 4
}
],
"warning": [
{
"severity": "info",
"line_from": 106,
"line_to": 106,
"type": "InvalidNullableReturnType",
"message": "The declared return type 'Symfony\\Component\\HttpFoundation\\Request' for SprykerShop\\Yves\\CartPage\\CartPageFactory::getRequest is not nullable, but 'Symfony\\Component\\HttpFoundation\\Request|null' contains null",
"file_name": "vendor/spryker/spryker-shop/Bundles/CartPage/src/SprykerShop/Yves/CartPage/CartPageFactory.php",
"snippet": " * @return \\Symfony\\Component\\HttpFoundation\\Request",
"selected_text": "\\Symfony\\Component\\HttpFoundation\\Request",
"error_level": 5,
"shortcode": 144
},
{
"severity": "info",
"line_from": 110,
"line_to": 110,
"type": "NullableReturnStatement",
"message": "The declared return type 'Symfony\\Component\\HttpFoundation\\Request' for SprykerShop\\Yves\\CartPage\\CartPageFactory::getRequest is not nullable, but the function returns 'Symfony\\Component\\HttpFoundation\\Request|null'",
"file_name": "vendor/spryker/spryker-shop/Bundles/CartPage/src/SprykerShop/Yves/CartPage/CartPageFactory.php",
"snippet": " return $this->getRequestStack()->getCurrentRequest();",
"selected_text": "$this->getRequestStack()->getCurrentRequest()",
"error_level": 5,
"shortcode": 139
},
{
"severity": "info",
"line_from": 418,
"line_to": 418,
"type": "PossiblyInvalidArgument",
"message": "Argument 4 of SprykerShop\\Yves\\CartPage\\Plugin\\Provider\\AttributeVariantsProvider::tryToReplaceItem expects ArrayObject<int, Generated\\Shared\\Transfer\\ItemTransfer>, possibly different type ArrayObject|array<array-key, Generated\\Shared\\Transfer\\ItemTransfer> provided",
"file_name": "vendor/spryker/spryker-shop/Bundles/CartPage/src/SprykerShop/Yves/CartPage/Controller/CartController.php",
"snippet": " $quoteTransfer->getItems(),",
"selected_text": "$quoteTransfer->getItems()",
"error_level": 3,
"shortcode": 92
},
{
"severity": "info",
"line_from": 612,
"line_to": 612,
"type": "PossiblyNullReference",
"message": "Cannot call method getCompanyUserTransfer on possibly null value",
"file_name": "vendor/spryker/spryker-shop/Bundles/CartPage/src/SprykerShop/Yves/CartPage/Controller/CartController.php",
"snippet": " if ($quoteTransfer->getCustomer()->getCompanyUserTransfer() === null) {",
"selected_text": "getCompanyUserTransfer",
"error_level": 3,
"shortcode": 83
},
{
"severity": "info",
"line_from": 666,
"line_to": 666,
"type": "PossiblyNullArgument",
"message": "Argument 1 of SprykerShop\\Yves\\CartPage\\Controller\\CartController::addErrorMessage cannot be null, possibly null value provided",
"file_name": "vendor/spryker/spryker-shop/Bundles/CartPage/src/SprykerShop/Yves/CartPage/Controller/CartController.php",
"snippet": " $this->addErrorMessage($messageTransfer->getValue());",
"selected_text": "$messageTransfer->getValue()",
"error_level": 3,
"shortcode": 78
},
{
"severity": "info",
"line_from": 678,
"line_to": 678,
"type": "PossiblyNullArgument",
"message": "Argument 1 of SprykerShop\\Yves\\CartPage\\Controller\\CartController::addSuccessMessage cannot be null, possibly null value provided",
"file_name": "vendor/spryker/spryker-shop/Bundles/CartPage/src/SprykerShop/Yves/CartPage/Controller/CartController.php",
"snippet": " $this->addSuccessMessage($messageTransfer->getValue());",
"selected_text": "$messageTransfer->getValue()",
"error_level": 3,
"shortcode": 78
},
{
"severity": "info",
"line_from": 123,
"line_to": 123,
"type": "PossiblyNullArgument",
"message": "Argument 1 of SprykerShop\\Yves\\CartPage\\Dependency\\Client\\CartPageToProductStorageClientInterface::findProductAbstractViewTransfer cannot be null, possibly null value provided",
"file_name": "vendor/spryker/spryker-shop/Bundles/CartPage/src/SprykerShop/Yves/CartPage/Handler/CartItemHandler.php",
"snippet": " $item->getIdProductAbstract(),",
"selected_text": "$item->getIdProductAbstract()",
"error_level": 3,
"shortcode": 78
},
{
"severity": "info",
"line_from": 100,
"line_to": 100,
"type": "PossiblyNullArrayOffset",
"message": "Cannot access value on variable $abstractProductData using possibly null offset int|null",
"file_name": "vendor/spryker/spryker-shop/Bundles/CartPage/src/SprykerShop/Yves/CartPage/Mapper/CartItemsAttributeMapper.php",
"snippet": " $attributeMap = $abstractProductData[$item->getIdProductAbstract()][static::KEY_ATTRIBUTE_MAP];",
"selected_text": "$abstractProductData",
"error_level": 3,
"shortcode": 125
},
{
"severity": "info",
"line_from": 102,
"line_to": 102,
"type": "PossiblyNullArrayOffset",
"message": "Cannot access value on variable $attributes[null|string] using possibly null offset null|string",
"file_name": "vendor/spryker/spryker-shop/Bundles/CartPage/src/SprykerShop/Yves/CartPage/Mapper/CartItemsAttributeMapper.php",
"snippet": " $attributes[$item->getSku()] = $this->buildAttributeMapWithAvailability(",
"selected_text": "$attributes",
"error_level": 3,
"shortcode": 125
},
{
"severity": "info",
"line_from": 111,
"line_to": 111,
"type": "PossiblyNullArrayOffset",
"message": "Cannot access value on variable $attributes[null|string] using possibly null offset null|string",
"file_name": "vendor/spryker/spryker-shop/Bundles/CartPage/src/SprykerShop/Yves/CartPage/Mapper/CartItemsAttributeMapper.php",
"snippet": " $attributes[$item->getSku()] = $this->getAttributesWithAvailability(",
"selected_text": "$attributes",
"error_level": 3,
"shortcode": 125
},
{
"severity": "info",
"line_from": 173,
"line_to": 173,
"type": "PossiblyNullArgument",
"message": "Argument 1 of SprykerShop\\Yves\\CartPage\\Dependency\\Client\\CartPageToProductStorageClientInterface::findProductAbstractStorageData cannot be null, possibly null value provided",
"file_name": "vendor/spryker/spryker-shop/Bundles/CartPage/src/SprykerShop/Yves/CartPage/Mapper/CartItemsAttributeMapper.php",
"snippet": " return $this->productStorageClient->findProductAbstractStorageData($item->getIdProductAbstract(), $localeName);",
"selected_text": "$item->getIdProductAbstract()",
"error_level": 3,
"shortcode": 78
},
{
"severity": "info",
"line_from": 60,
"line_to": 60,
"type": "PossiblyNullArgument",
"message": "Argument 1 of SprykerShop\\Yves\\CartPage\\Dependency\\Client\\CartPageToAvailabilityStorageClientInterface::getProductAvailabilityByIdProductAbstract cannot be null, possibly null value provided",
"file_name": "vendor/spryker/spryker-shop/Bundles/CartPage/src/SprykerShop/Yves/CartPage/Mapper/CartItemsAvailabilityMapper.php",
"snippet": " $availability = $this->productAvailabilityClient->getProductAvailabilityByIdProductAbstract($item->getIdProductAbstract())->toArray();",
"selected_text": "$item->getIdProductAbstract()",
"error_level": 3,
"shortcode": 78
},
{
"severity": "info",
"line_from": 34,
"line_to": 34,
"type": "PossiblyInvalidMethodCall",
"message": "Cannot call method on possible array<array-key, Generated\\Shared\\Transfer\\ItemTransfer> variable ",
"file_name": "vendor/spryker/spryker-shop/Bundles/CartPage/src/SprykerShop/Yves/CartPage/Model/CartItemReader.php",
"snippet": " $cartItems = $quoteTransfer->getItems()->getArrayCopy();",
"selected_text": "getArrayCopy",
"error_level": 3,
"shortcode": 113
},
{
"severity": "info",
"line_from": 49,
"line_to": 49,
"type": "PossiblyNullArgument",
"message": "Argument 1 of SprykerShop\\Yves\\CartPage\\Plugin\\Provider\\AttributeVariantsProvider::removeEmptyAttributes cannot be null, possibly null value provided",
"file_name": "vendor/spryker/spryker-shop/Bundles/CartPage/src/SprykerShop/Yves/CartPage/Plugin/Provider/AttributeVariantsProvider.php",
"snippet": " $itemAttributes = $this->removeEmptyAttributes($itemAttributes);",
"selected_text": "$itemAttributes",
"error_level": 3,
"shortcode": 78
},
{
"severity": "info",
"line_from": 52,
"line_to": 52,
"type": "PossiblyInvalidArgument",
"message": "Argument 1 of SprykerShop\\Yves\\CartPage\\Dependency\\Plugin\\CartVariantAttributeMapperPluginInterface::buildMap expects ArrayObject<int, Generated\\Shared\\Transfer\\ItemTransfer>, possibly different type ArrayObject|array<array-key, Generated\\Shared\\Transfer\\ItemTransfer> provided",
"file_name": "vendor/spryker/spryker-shop/Bundles/CartPage/src/SprykerShop/Yves/CartPage/Plugin/Provider/AttributeVariantsProvider.php",
"snippet": " ->buildMap($quoteTransfer->getItems(), $localeName);",
"selected_text": "$quoteTransfer->getItems()",
"error_level": 3,
"shortcode": 92
},
{
"severity": "info",
"line_from": 55,
"line_to": 55,
"type": "PossiblyInvalidArgument",
"message": "Argument 1 of SprykerShop\\Yves\\CartPage\\Handler\\CartItemHandlerInterface::narrowDownOptions expects ArrayObject<int, Generated\\Shared\\Transfer\\ItemTransfer>, possibly different type ArrayObject|array<array-key, Generated\\Shared\\Transfer\\ItemTransfer> provided",
"file_name": "vendor/spryker/spryker-shop/Bundles/CartPage/src/SprykerShop/Yves/CartPage/Plugin/Provider/AttributeVariantsProvider.php",
"snippet": " ->narrowDownOptions($quoteTransfer->getItems(), $itemAttributesBySku, $itemAttributes, $localeName);",
"selected_text": "$quoteTransfer->getItems()",
"error_level": 3,
"shortcode": 92
},
{
"severity": "info",
"line_from": 74,
"line_to": 74,
"type": "PossiblyNullArgument",
"message": "Argument 4 of SprykerShop\\Yves\\CartPage\\Handler\\CartItemHandlerInterface::replaceCartItem cannot be null, possibly null value provided",
"file_name": "vendor/spryker/spryker-shop/Bundles/CartPage/src/SprykerShop/Yves/CartPage/Plugin/Provider/AttributeVariantsProvider.php",
"snippet": " $this->cartItemHandler->replaceCartItem($sku, $productViewTransfer, $quantity, $groupKey, $optionValueIds);",
"selected_text": "$groupKey",
"error_level": 3,
"shortcode": 78
},
{
"severity": "info",
"line_from": 176,
"line_to": 176,
"type": "PossiblyNullReference",
"message": "Cannot call method getIsSuccessfulOrFail on possibly null value",
"file_name": "vendor/spryker/spryker-shop/Bundles/CartPage/src/SprykerShop/Yves/CartPage/ViewModel/CartPageView.php",
"snippet": " return $this->quoteResponseTransfer->getIsSuccessfulOrFail();",
"selected_text": "getIsSuccessfulOrFail",
"error_level": 3,
"shortcode": 83
}
],
"deprecation": [
{
"severity": "info",
"line_from": 121,
"line_to": 121,
"type": "DeprecatedMethod",
"message": "The method SprykerShop\\Yves\\CartPage\\CartPageDependencyProvider::addApplication has been marked as deprecated",
"file_name": "vendor/spryker/spryker-shop/Bundles/CartPage/src/SprykerShop/Yves/CartPage/CartPageDependencyProvider.php",
"snippet": " $container = $this->addApplication($container);",
"selected_text": "addApplication",
"error_level": 2,
"shortcode": 1
},
{
"severity": "info",
"line_from": 58,
"line_to": 58,
"type": "DeprecatedMethod",
"message": "The method Spryker\\Client\\ProductStorage\\ProductStorageClientInterface::getBulkProductAbstractStorageDataByProductAbstractIdsAndLocaleName has been marked as deprecated",
"file_name": "vendor/spryker/spryker-shop/Bundles/CartPage/src/SprykerShop/Yves/CartPage/Dependency/Client/CartPageToProductStorageClientBridge.php",
"snippet": " return $this->productStorageClient->getBulkProductAbstractStorageDataByProductAbstractIdsAndLocaleName($productAbstractIds, $localeName);",
"selected_text": "getBulkProductAbstractStorageDataByProductAbstractIdsAndLocaleName",
"error_level": 2,
"shortcode": 1
},
{
"severity": "info",
"line_from": 111,
"line_to": 111,
"type": "DeprecatedMethod",
"message": "The method SprykerShop\\Yves\\CartPage\\Mapper\\CartItemsAttributeMapper::getAttributesWithAvailability has been marked as deprecated",
"file_name": "vendor/spryker/spryker-shop/Bundles/CartPage/src/SprykerShop/Yves/CartPage/Mapper/CartItemsAttributeMapper.php",
"snippet": " $attributes[$item->getSku()] = $this->getAttributesWithAvailability(",
"selected_text": "getAttributesWithAvailability",
"error_level": 2,
"shortcode": 1
},
{
"severity": "info",
"line_from": 217,
"line_to": 217,
"type": "DeprecatedConstant",
"message": "Constant SprykerShop\\Yves\\CartPage\\Mapper\\CartItemsAttributeMapper::KEY_ATTRIBUTE_VARIANTS is deprecated",
"file_name": "vendor/spryker/spryker-shop/Bundles/CartPage/src/SprykerShop/Yves/CartPage/Mapper/CartItemsAttributeMapper.php",
"snippet": " new RecursiveArrayIterator($attributeMap[static::KEY_ATTRIBUTE_VARIANTS]),",
"selected_text": "static::KEY_ATTRIBUTE_VARIANTS",
"error_level": 2,
"shortcode": 170
},
{
"severity": "info",
"line_from": 45,
"line_to": 45,
"type": "DeprecatedMethod",
"message": "The method SprykerShop\\Yves\\CartPage\\Plugin\\Twig\\CartTwigPlugin::addCartQuantityGlobalVariable has been marked as deprecated",
"file_name": "vendor/spryker/spryker-shop/Bundles/CartPage/src/SprykerShop/Yves/CartPage/Plugin/Twig/CartTwigPlugin.php",
"snippet": " $twig = $this->addCartQuantityGlobalVariable($twig);",
"selected_text": "addCartQuantityGlobalVariable",
"error_level": 2,
"shortcode": 1
}
],
"count": 24
}