forked from spryker-shop/product-option-widget
-
Notifications
You must be signed in to change notification settings - Fork 0
/
psalm-report.json
152 lines (152 loc) · 10.1 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
{
"error": [
{
"severity": "error",
"line_from": 42,
"line_to": 42,
"type": "InvalidReturnType",
"message": "The declared return type 'ArrayObject<int, Generated\\Shared\\Transfer\\ProductOptionGroupStorageTransfer>' for SprykerShop\\Yves\\ProductOptionWidget\\Form\\DataProvider\\ShoppingListItemProductOptionFormDataProvider::findProductOptionGroupsByShoppingListItem is incorrect, got 'ArrayObject|ArrayObject<mixed, mixed>|array<array-key, Generated\\Shared\\Transfer\\ProductOptionGroupStorageTransfer>'",
"file_name": "vendor/spryker/spryker-shop/Bundles/ProductOptionWidget/src/SprykerShop/Yves/ProductOptionWidget/Form/DataProvider/ShoppingListItemProductOptionFormDataProvider.php",
"snippet": " * @return \\ArrayObject<int, \\Generated\\Shared\\Transfer\\ProductOptionGroupStorageTransfer>",
"selected_text": "\\ArrayObject<int, \\Generated\\Shared\\Transfer\\ProductOptionGroupStorageTransfer>",
"error_level": 6,
"shortcode": 11
},
{
"severity": "error",
"line_from": 59,
"line_to": 59,
"type": "InvalidReturnStatement",
"message": "The inferred type 'ArrayObject|array<array-key, Generated\\Shared\\Transfer\\ProductOptionGroupStorageTransfer>' does not match the declared return type 'ArrayObject<int, Generated\\Shared\\Transfer\\ProductOptionGroupStorageTransfer>' for SprykerShop\\Yves\\ProductOptionWidget\\Form\\DataProvider\\ShoppingListItemProductOptionFormDataProvider::findProductOptionGroupsByShoppingListItem",
"file_name": "vendor/spryker/spryker-shop/Bundles/ProductOptionWidget/src/SprykerShop/Yves/ProductOptionWidget/Form/DataProvider/ShoppingListItemProductOptionFormDataProvider.php",
"snippet": " return $storageProductOptionGroupCollectionTransfer->getProductOptionGroups();",
"selected_text": "$storageProductOptionGroupCollectionTransfer->getProductOptionGroups()",
"error_level": 6,
"shortcode": 128
},
{
"severity": "error",
"line_from": 42,
"line_to": 42,
"type": "InvalidReturnType",
"message": "The declared return type 'array<array-key, int>' for SprykerShop\\Yves\\ProductOptionWidget\\Mapper\\ProductAbstractOptionStorageMapper::getSelectedProductOptionIds is incorrect, got 'list<int|mixed|null>'",
"file_name": "vendor/spryker/spryker-shop/Bundles/ProductOptionWidget/src/SprykerShop/Yves/ProductOptionWidget/Mapper/ProductAbstractOptionStorageMapper.php",
"snippet": " * @return array<int>",
"selected_text": "array<int>",
"error_level": 6,
"shortcode": 11
},
{
"severity": "error",
"line_from": 51,
"line_to": 51,
"type": "InvalidReturnStatement",
"message": "The inferred type 'list<int|mixed|null>' does not match the declared return type 'array<array-key, int>' for SprykerShop\\Yves\\ProductOptionWidget\\Mapper\\ProductAbstractOptionStorageMapper::getSelectedProductOptionIds",
"file_name": "vendor/spryker/spryker-shop/Bundles/ProductOptionWidget/src/SprykerShop/Yves/ProductOptionWidget/Mapper/ProductAbstractOptionStorageMapper.php",
"snippet": " return $selectedProductOptionIds;",
"selected_text": "$selectedProductOptionIds",
"error_level": 6,
"shortcode": 128
},
{
"severity": "error",
"line_from": 47,
"line_to": 47,
"type": "InvalidReturnType",
"message": "The declared return type 'ArrayObject<int, Generated\\Shared\\Transfer\\ProductOptionGroupStorageTransfer>' for SprykerShop\\Yves\\ProductOptionWidget\\Widget\\ProductOptionConfiguratorWidget::getProductOptionGroups is incorrect, got 'ArrayObject|ArrayObject<mixed, mixed>|array<array-key, Generated\\Shared\\Transfer\\ProductOptionGroupStorageTransfer>'",
"file_name": "vendor/spryker/spryker-shop/Bundles/ProductOptionWidget/src/SprykerShop/Yves/ProductOptionWidget/Widget/ProductOptionConfiguratorWidget.php",
"snippet": " * @return \\ArrayObject<int, \\Generated\\Shared\\Transfer\\ProductOptionGroupStorageTransfer>",
"selected_text": "\\ArrayObject<int, \\Generated\\Shared\\Transfer\\ProductOptionGroupStorageTransfer>",
"error_level": 6,
"shortcode": 11
},
{
"severity": "error",
"line_from": 56,
"line_to": 56,
"type": "InvalidReturnStatement",
"message": "The inferred type 'ArrayObject|array<array-key, Generated\\Shared\\Transfer\\ProductOptionGroupStorageTransfer>' does not match the declared return type 'ArrayObject<int, Generated\\Shared\\Transfer\\ProductOptionGroupStorageTransfer>' for SprykerShop\\Yves\\ProductOptionWidget\\Widget\\ProductOptionConfiguratorWidget::getProductOptionGroups",
"file_name": "vendor/spryker/spryker-shop/Bundles/ProductOptionWidget/src/SprykerShop/Yves/ProductOptionWidget/Widget/ProductOptionConfiguratorWidget.php",
"snippet": " return $productAbstractOptionStorageTransfer->getProductOptionGroups();",
"selected_text": "$productAbstractOptionStorageTransfer->getProductOptionGroups()",
"error_level": 6,
"shortcode": 128
}
],
"warning": [
{
"severity": "info",
"line_from": 47,
"line_to": 47,
"type": "PossiblyNullArgument",
"message": "Argument 1 of SprykerShop\\Yves\\ProductOptionWidget\\Dependency\\Client\\ProductOptionWidgetToProductOptionStorageClientInterface::getProductOptionsForCurrentStore cannot be null, possibly null value provided",
"file_name": "vendor/spryker/spryker-shop/Bundles/ProductOptionWidget/src/SprykerShop/Yves/ProductOptionWidget/Form/DataProvider/ShoppingListItemProductOptionFormDataProvider.php",
"snippet": " ->getProductOptionsForCurrentStore($shoppingListItemTransfer->getIdProductAbstract());",
"selected_text": "$shoppingListItemTransfer->getIdProductAbstract()",
"error_level": 3,
"shortcode": 78
},
{
"severity": "info",
"line_from": 50,
"line_to": 50,
"type": "MoreSpecificImplementedParamType",
"message": "Argument 2 of SprykerShop\\Yves\\ProductOptionWidget\\Form\\ShoppingListItemProductOptionForm::buildForm has the more specific type 'array<string, mixed>', expecting 'array<array-key, mixed>' as defined by Symfony\\Component\\Form\\AbstractType::buildForm",
"file_name": "vendor/spryker/spryker-shop/Bundles/ProductOptionWidget/src/SprykerShop/Yves/ProductOptionWidget/Form/ShoppingListItemProductOptionForm.php",
"snippet": " public function buildForm(FormBuilderInterface $builder, array $options): void",
"selected_text": "$options",
"error_level": 5,
"shortcode": 140
},
{
"severity": "info",
"line_from": 62,
"line_to": 62,
"type": "MoreSpecificImplementedParamType",
"message": "Argument 3 of SprykerShop\\Yves\\ProductOptionWidget\\Form\\ShoppingListItemProductOptionForm::buildView has the more specific type 'array<string, mixed>', expecting 'array<array-key, mixed>' as defined by Symfony\\Component\\Form\\AbstractType::buildView",
"file_name": "vendor/spryker/spryker-shop/Bundles/ProductOptionWidget/src/SprykerShop/Yves/ProductOptionWidget/Form/ShoppingListItemProductOptionForm.php",
"snippet": " public function buildView(FormView $view, FormInterface $form, array $options): void",
"selected_text": "$options",
"error_level": 5,
"shortcode": 140
},
{
"severity": "info",
"line_from": 88,
"line_to": 88,
"type": "PossiblyNullArgument",
"message": "Argument 1 of SprykerShop\\Yves\\ProductOptionWidget\\Form\\ShoppingListItemProductOptionForm::generateFormTypeName cannot be null, possibly null value provided",
"file_name": "vendor/spryker/spryker-shop/Bundles/ProductOptionWidget/src/SprykerShop/Yves/ProductOptionWidget/Form/ShoppingListItemProductOptionForm.php",
"snippet": " $form->add($this->generateFormTypeName($option->getName()), ChoiceType::class, [",
"selected_text": "$option->getName()",
"error_level": 3,
"shortcode": 78
},
{
"severity": "info",
"line_from": 90,
"line_to": 90,
"type": "PossiblyInvalidMethodCall",
"message": "Cannot call method on possible array<array-key, Generated\\Shared\\Transfer\\ProductOptionValueStorageTransfer> variable ",
"file_name": "vendor/spryker/spryker-shop/Bundles/ProductOptionWidget/src/SprykerShop/Yves/ProductOptionWidget/Form/ShoppingListItemProductOptionForm.php",
"snippet": " 'choices' => $option->getProductOptionValues()->getArrayCopy(),",
"selected_text": "getArrayCopy",
"error_level": 3,
"shortcode": 113
},
{
"severity": "info",
"line_from": 68,
"line_to": 68,
"type": "PossiblyNullArgument",
"message": "Argument 1 of SprykerShop\\Yves\\ProductOptionWidget\\Dependency\\Client\\ProductOptionWidgetToProductOptionStorageClientInterface::getProductOptionsForCurrentStore cannot be null, possibly null value provided",
"file_name": "vendor/spryker/spryker-shop/Bundles/ProductOptionWidget/src/SprykerShop/Yves/ProductOptionWidget/Widget/ProductOptionConfiguratorWidget.php",
"snippet": " ->getProductOptionsForCurrentStore($productViewTransfer->getIdProductAbstract());",
"selected_text": "$productViewTransfer->getIdProductAbstract()",
"error_level": 3,
"shortcode": 78
}
],
"deprecation": [],
"count": 12
}