-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpsalm-report.json
344 lines (344 loc) · 18.4 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
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
332
333
334
335
336
337
338
339
340
341
342
343
344
{
"error": [],
"warning": [
{
"severity": "info",
"line_from": 54,
"line_to": 54,
"type": "PossiblyInvalidMethodCall",
"message": "Cannot call method on possible array<array-key, Generated\\Shared\\Transfer\\WishlistMoveToCartRequestTransfer> variable ",
"file_name": "vendor/spryker/spryker-shop/Bundles/WishlistPage/src/SprykerShop/Yves/WishlistPage/Business/MoveToCartHandler.php",
"snippet": " if ($wishlistMoveToCartRequestCollectionTransfer->getRequests()->count() <= 0) {",
"selected_text": "count",
"error_level": 3,
"shortcode": 113
},
{
"severity": "info",
"line_from": 107,
"line_to": 107,
"type": "InvalidNullableReturnType",
"message": "The declared return type 'int' for SprykerShop\\Yves\\WishlistPage\\Business\\MoveToCartHandler::getIdCustomer is not nullable, but 'int|null' contains null",
"file_name": "vendor/spryker/spryker-shop/Bundles/WishlistPage/src/SprykerShop/Yves/WishlistPage/Business/MoveToCartHandler.php",
"snippet": " * @return int",
"selected_text": "int",
"error_level": 5,
"shortcode": 144
},
{
"severity": "info",
"line_from": 111,
"line_to": 113,
"type": "NullableReturnStatement",
"message": "The declared return type 'int' for SprykerShop\\Yves\\WishlistPage\\Business\\MoveToCartHandler::getIdCustomer is not nullable, but the function returns 'int|null'",
"file_name": "vendor/spryker/spryker-shop/Bundles/WishlistPage/src/SprykerShop/Yves/WishlistPage/Business/MoveToCartHandler.php",
"snippet": " return $this->customerClient\n ->getCustomer()\n ->getIdCustomer();",
"selected_text": "$this->customerClient\n ->getCustomer()\n ->getIdCustomer()",
"error_level": 5,
"shortcode": 139
},
{
"severity": "info",
"line_from": 113,
"line_to": 113,
"type": "PossiblyNullReference",
"message": "Cannot call method getIdCustomer on possibly null value",
"file_name": "vendor/spryker/spryker-shop/Bundles/WishlistPage/src/SprykerShop/Yves/WishlistPage/Business/MoveToCartHandler.php",
"snippet": " ->getIdCustomer();",
"selected_text": "getIdCustomer",
"error_level": 3,
"shortcode": 83
},
{
"severity": "info",
"line_from": 109,
"line_to": 109,
"type": "PossiblyNullReference",
"message": "Cannot call method getPage on possibly null value",
"file_name": "vendor/spryker/spryker-shop/Bundles/WishlistPage/src/SprykerShop/Yves/WishlistPage/Controller/WishlistController.php",
"snippet": " 'currentPage' => $wishlistOverviewResponseTransfer->getPagination()->getPage(),",
"selected_text": "getPage",
"error_level": 3,
"shortcode": 83
},
{
"severity": "info",
"line_from": 110,
"line_to": 110,
"type": "PossiblyNullReference",
"message": "Cannot call method getPagesTotal on possibly null value",
"file_name": "vendor/spryker/spryker-shop/Bundles/WishlistPage/src/SprykerShop/Yves/WishlistPage/Controller/WishlistController.php",
"snippet": " 'totalPages' => $wishlistOverviewResponseTransfer->getPagination()->getPagesTotal(),",
"selected_text": "getPagesTotal",
"error_level": 3,
"shortcode": 83
},
{
"severity": "info",
"line_from": 215,
"line_to": 215,
"type": "PossiblyNullArgument",
"message": "Argument 1 of SprykerShop\\Yves\\WishlistPage\\Business\\MoveToCartHandlerInterface::moveAllAvailableToCart cannot be null, possibly null value provided",
"file_name": "vendor/spryker/spryker-shop/Bundles/WishlistPage/src/SprykerShop/Yves/WishlistPage/Controller/WishlistController.php",
"snippet": " $wishlistItemTransfer->getWishlistName(),",
"selected_text": "$wishlistItemTransfer->getWishlistName()",
"error_level": 3,
"shortcode": 78
},
{
"severity": "info",
"line_from": 219,
"line_to": 219,
"type": "PossiblyInvalidMethodCall",
"message": "Cannot call method on possible array<array-key, Generated\\Shared\\Transfer\\WishlistMoveToCartRequestTransfer> variable ",
"file_name": "vendor/spryker/spryker-shop/Bundles/WishlistPage/src/SprykerShop/Yves/WishlistPage/Controller/WishlistController.php",
"snippet": " if ($result->getRequests()->count()) {",
"selected_text": "count",
"error_level": 3,
"shortcode": 113
},
{
"severity": "info",
"line_from": 257,
"line_to": 257,
"type": "PossiblyInvalidMethodCall",
"message": "Cannot call method on possible array<array-key, Generated\\Shared\\Transfer\\WishlistMoveToCartRequestTransfer> variable ",
"file_name": "vendor/spryker/spryker-shop/Bundles/WishlistPage/src/SprykerShop/Yves/WishlistPage/Controller/WishlistController.php",
"snippet": " if ($result->getRequests()->count()) {",
"selected_text": "count",
"error_level": 3,
"shortcode": 113
},
{
"severity": "info",
"line_from": 260,
"line_to": 260,
"type": "PossiblyInvalidMethodCall",
"message": "Cannot call method on possible array<array-key, Generated\\Shared\\Transfer\\WishlistMoveToCartRequestTransfer> variable ",
"file_name": "vendor/spryker/spryker-shop/Bundles/WishlistPage/src/SprykerShop/Yves/WishlistPage/Controller/WishlistController.php",
"snippet": " if ($result->getRequests()->count() === count($wishlistItemMetaTransferCollection)) {",
"selected_text": "count",
"error_level": 3,
"shortcode": 113
},
{
"severity": "info",
"line_from": 361,
"line_to": 361,
"type": "PossiblyNullArrayOffset",
"message": "Cannot access value on variable $wishlistItems[int|null] using possibly null offset int|null",
"file_name": "vendor/spryker/spryker-shop/Bundles/WishlistPage/src/SprykerShop/Yves/WishlistPage/Controller/WishlistController.php",
"snippet": " $wishlistItems[$wishlistItemTransfer->getIdWishlistItem()] = $this->createProductView($wishlistItemTransfer);",
"selected_text": "$wishlistItems",
"error_level": 3,
"shortcode": 125
},
{
"severity": "info",
"line_from": 376,
"line_to": 376,
"type": "PossiblyNullArgument",
"message": "Argument 1 of SprykerShop\\Yves\\WishlistPage\\Dependency\\Client\\WishlistPageToProductStorageClientInterface::findProductConcreteStorageData cannot be null, possibly null value provided",
"file_name": "vendor/spryker/spryker-shop/Bundles/WishlistPage/src/SprykerShop/Yves/WishlistPage/Controller/WishlistController.php",
"snippet": " ->findProductConcreteStorageData($wishlistItemTransfer->getIdProduct(), $this->getLocale());",
"selected_text": "$wishlistItemTransfer->getIdProduct()",
"error_level": 3,
"shortcode": 78
},
{
"severity": "info",
"line_from": 476,
"line_to": 476,
"type": "PossiblyNullReference",
"message": "Cannot call method getIdCustomer on possibly null value",
"file_name": "vendor/spryker/spryker-shop/Bundles/WishlistPage/src/SprykerShop/Yves/WishlistPage/Controller/WishlistController.php",
"snippet": " ->setFkCustomer($customerTransfer->getIdCustomer());",
"selected_text": "getIdCustomer",
"error_level": 3,
"shortcode": 83
},
{
"severity": "info",
"line_from": 494,
"line_to": 494,
"type": "PossiblyNullReference",
"message": "Cannot call method getIdWishlist on possibly null value",
"file_name": "vendor/spryker/spryker-shop/Bundles/WishlistPage/src/SprykerShop/Yves/WishlistPage/Controller/WishlistController.php",
"snippet": " if (!$wishlistOverviewResponseTransfer->getWishlist()->getIdWishlist()) {",
"selected_text": "getIdWishlist",
"error_level": 3,
"shortcode": 83
},
{
"severity": "info",
"line_from": 510,
"line_to": 510,
"type": "PossiblyNullArgument",
"message": "Argument 1 of SprykerShop\\Yves\\WishlistPage\\Controller\\WishlistController::translate cannot be null, possibly null value provided",
"file_name": "vendor/spryker/spryker-shop/Bundles/WishlistPage/src/SprykerShop/Yves/WishlistPage/Controller/WishlistController.php",
"snippet": " $messageTransfer->getMessage(),",
"selected_text": "$messageTransfer->getMessage()",
"error_level": 3,
"shortcode": 78
},
{
"severity": "info",
"line_from": 529,
"line_to": 529,
"type": "PossiblyNullArrayOffset",
"message": "Cannot access value on variable $indexedWishlistItemTransfers[int|mixed|null] using possibly null offset int|mixed|null",
"file_name": "vendor/spryker/spryker-shop/Bundles/WishlistPage/src/SprykerShop/Yves/WishlistPage/Controller/WishlistController.php",
"snippet": " $indexedWishlistItemTransfers[$wishlistItemTransfer->getIdWishlistItem()] = $wishlistItemTransfer;",
"selected_text": "$indexedWishlistItemTransfers",
"error_level": 3,
"shortcode": 125
},
{
"severity": "info",
"line_from": 184,
"line_to": 184,
"type": "InvalidNullableReturnType",
"message": "The declared return type 'int' for SprykerShop\\Yves\\WishlistPage\\Controller\\WishlistOverviewController::getIdCustomer is not nullable, but 'int|null' contains null",
"file_name": "vendor/spryker/spryker-shop/Bundles/WishlistPage/src/SprykerShop/Yves/WishlistPage/Controller/WishlistOverviewController.php",
"snippet": " * @return int",
"selected_text": "int",
"error_level": 5,
"shortcode": 144
},
{
"severity": "info",
"line_from": 188,
"line_to": 191,
"type": "NullableReturnStatement",
"message": "The declared return type 'int' for SprykerShop\\Yves\\WishlistPage\\Controller\\WishlistOverviewController::getIdCustomer is not nullable, but the function returns 'int|null'",
"file_name": "vendor/spryker/spryker-shop/Bundles/WishlistPage/src/SprykerShop/Yves/WishlistPage/Controller/WishlistOverviewController.php",
"snippet": " return $this->getFactory()\n ->getCustomerClient()\n ->getCustomer()\n ->getIdCustomer();",
"selected_text": "$this->getFactory()\n ->getCustomerClient()\n ->getCustomer()\n ->getIdCustomer()",
"error_level": 5,
"shortcode": 139
},
{
"severity": "info",
"line_from": 191,
"line_to": 191,
"type": "PossiblyNullReference",
"message": "Cannot call method getIdCustomer on possibly null value",
"file_name": "vendor/spryker/spryker-shop/Bundles/WishlistPage/src/SprykerShop/Yves/WishlistPage/Controller/WishlistOverviewController.php",
"snippet": " ->getIdCustomer();",
"selected_text": "getIdCustomer",
"error_level": 3,
"shortcode": 83
},
{
"severity": "info",
"line_from": 41,
"line_to": 41,
"type": "PossiblyNullReference",
"message": "Cannot call method getWishlistItemMetaCollection on possibly null value",
"file_name": "vendor/spryker/spryker-shop/Bundles/WishlistPage/src/SprykerShop/Yves/WishlistPage/Form/DataProvider/AddAllAvailableProductsToCartFormDataProvider.php",
"snippet": " ->getWishlistItemMetaCollection()",
"selected_text": "getWishlistItemMetaCollection",
"error_level": 3,
"shortcode": 83
},
{
"severity": "info",
"line_from": 42,
"line_to": 42,
"type": "PossiblyInvalidMethodCall",
"message": "Cannot call method on possible array<array-key, Generated\\Shared\\Transfer\\WishlistItemMetaTransfer> variable ",
"file_name": "vendor/spryker/spryker-shop/Bundles/WishlistPage/src/SprykerShop/Yves/WishlistPage/Form/DataProvider/AddAllAvailableProductsToCartFormDataProvider.php",
"snippet": " ->getArrayCopy();",
"selected_text": "getArrayCopy",
"error_level": 3,
"shortcode": 113
},
{
"severity": "info",
"line_from": 48,
"line_to": 48,
"type": "PossiblyNullReference",
"message": "Cannot call method getIdCustomer on possibly null value",
"file_name": "vendor/spryker/spryker-shop/Bundles/WishlistPage/src/SprykerShop/Yves/WishlistPage/Form/DataProvider/WishlistFormDataProvider.php",
"snippet": " ->setFkCustomer($customerTransfer->getIdCustomer());",
"selected_text": "getIdCustomer",
"error_level": 3,
"shortcode": 83
}
],
"deprecation": [
{
"severity": "info",
"line_from": 128,
"line_to": 128,
"type": "DeprecatedMethod",
"message": "The method Spryker\\Client\\Wishlist\\WishlistClientInterface::getWishlist has been marked as deprecated",
"file_name": "vendor/spryker/spryker-shop/Bundles/WishlistPage/src/SprykerShop/Yves/WishlistPage/Dependency/Client/WishlistPageToWishlistClientBridge.php",
"snippet": " return $this->wishlistClient->getWishlist($wishlistTransfer);",
"selected_text": "getWishlist",
"error_level": 2,
"shortcode": 1
},
{
"severity": "info",
"line_from": 21,
"line_to": 21,
"type": "DeprecatedClass",
"message": "Class Spryker\\Client\\ProductStorage\\Dependency\\Plugin\\ProductViewExpanderPluginInterface is marked as deprecated",
"file_name": "vendor/spryker/spryker-shop/Bundles/WishlistPage/src/SprykerShop/Yves/WishlistPage/Expander/WishlistItem/WishlistItemExpander.php",
"snippet": " * @var array<\\Spryker\\Client\\ProductStorage\\Dependency\\Plugin\\ProductViewExpanderPluginInterface>",
"selected_text": "array<\\Spryker\\Client\\ProductStorage\\Dependency\\Plugin\\ProductViewExpanderPluginInterface>",
"error_level": 2,
"shortcode": 98
},
{
"severity": "info",
"line_from": 27,
"line_to": 27,
"type": "DeprecatedClass",
"message": "Class Spryker\\Client\\ProductStorage\\Dependency\\Plugin\\ProductViewExpanderPluginInterface is marked as deprecated",
"file_name": "vendor/spryker/spryker-shop/Bundles/WishlistPage/src/SprykerShop/Yves/WishlistPage/Expander/WishlistItem/WishlistItemExpander.php",
"snippet": " * @param array<\\Spryker\\Client\\ProductStorage\\Dependency\\Plugin\\ProductViewExpanderPluginInterface> $wishlistItemExpanderPlugins",
"selected_text": "array<\\Spryker\\Client\\ProductStorage\\Dependency\\Plugin\\ProductViewExpanderPluginInterface>",
"error_level": 2,
"shortcode": 98
},
{
"severity": "info",
"line_from": 191,
"line_to": 191,
"type": "DeprecatedClass",
"message": "Class Spryker\\Client\\ProductStorage\\Dependency\\Plugin\\ProductViewExpanderPluginInterface is marked as deprecated",
"file_name": "vendor/spryker/spryker-shop/Bundles/WishlistPage/src/SprykerShop/Yves/WishlistPage/WishlistPageDependencyProvider.php",
"snippet": " * @return array<\\Spryker\\Client\\ProductStorage\\Dependency\\Plugin\\ProductViewExpanderPluginInterface>",
"selected_text": "array<\\Spryker\\Client\\ProductStorage\\Dependency\\Plugin\\ProductViewExpanderPluginInterface>",
"error_level": 2,
"shortcode": 98
},
{
"severity": "info",
"line_from": 212,
"line_to": 212,
"type": "DeprecatedClass",
"message": "Class Spryker\\Client\\ProductStorage\\Dependency\\Plugin\\ProductViewExpanderPluginInterface is marked as deprecated",
"file_name": "vendor/spryker/spryker-shop/Bundles/WishlistPage/src/SprykerShop/Yves/WishlistPage/WishlistPageFactory.php",
"snippet": " * @return array<\\Spryker\\Client\\ProductStorage\\Dependency\\Plugin\\ProductViewExpanderPluginInterface>",
"selected_text": "array<\\Spryker\\Client\\ProductStorage\\Dependency\\Plugin\\ProductViewExpanderPluginInterface>",
"error_level": 2,
"shortcode": 98
},
{
"severity": "info",
"line_from": 66,
"line_to": 66,
"type": "DeprecatedClass",
"message": "Class Spryker\\Yves\\Kernel\\Application is marked as deprecated",
"file_name": "vendor/spryker/spryker/Bundles/Kernel/src/Spryker/Yves/Kernel/Controller/AbstractController.php",
"snippet": " * @var \\Spryker\\Yves\\Kernel\\Application|\\Spryker\\Service\\Container\\ContainerInterface",
"selected_text": "\\Spryker\\Yves\\Kernel\\Application|\\Spryker\\Service\\Container\\ContainerInterface",
"error_level": 2,
"shortcode": 98
}
],
"count": 28
}