-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
psalm-baseline.xml
155 lines (155 loc) · 5.62 KB
/
psalm-baseline.xml
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
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="4.24.0@06dd975cb55d36af80f242561738f16c5f58264f">
<file src="src/BabDevSyliusProductSamplesPlugin.php">
<MixedInferredReturnType occurrences="1">
<code>?ExtensionInterface</code>
</MixedInferredReturnType>
<MixedReturnStatement occurrences="1">
<code>$this->extension ?: null</code>
</MixedReturnStatement>
</file>
<file src="src/DependencyInjection/BabDevSyliusProductSamplesExtension.php">
<MixedArgument occurrences="1">
<code>$mergedConfig['sample_variant_code_prefix']</code>
</MixedArgument>
</file>
<file src="src/DependencyInjection/Configuration.php">
<PossiblyNullReference occurrences="1">
<code>end</code>
</PossiblyNullReference>
<PossiblyUndefinedMethod occurrences="1">
<code>end</code>
</PossiblyUndefinedMethod>
<UnusedMethodCall occurrences="1">
<code>end</code>
</UnusedMethodCall>
</file>
<file src="src/Doctrine/ORM/ProductVariantRepository.php">
<MissingParamType occurrences="1">
<code>$productId</code>
</MissingParamType>
</file>
<file src="src/EventListener/SampleVariantGeneratorListener.php">
<ArgumentTypeCoercion occurrences="1">
<code>$channel</code>
</ArgumentTypeCoercion>
<PossiblyNullReference occurrences="1">
<code>getCode</code>
</PossiblyNullReference>
</file>
<file src="src/Form/EventSubscriber/EnsureSampleVariantsHaveValidCodesFormSubscriber.php">
<MixedArgument occurrences="1">
<code>$event->getData()</code>
</MixedArgument>
<MixedMethodCall occurrences="1">
<code>getVariants</code>
</MixedMethodCall>
</file>
<file src="src/Form/EventSubscriber/ManageSampleProductVariantAssignmentsFormSubscriber.php">
<PossiblyNullReference occurrences="3">
<code>getParent</code>
<code>getSamplesActive</code>
<code>removeVariant</code>
</PossiblyNullReference>
<UndefinedInterfaceMethod occurrences="1">
<code>getSamplesActive</code>
</UndefinedInterfaceMethod>
</file>
<file src="src/Form/EventSubscriber/SynchronizeSampleProductVariantTranslationsFormSubscriber.php">
<PossiblyNullReference occurrences="2">
<code>getTranslations</code>
<code>hasTranslation</code>
</PossiblyNullReference>
</file>
<file src="src/Form/Extension/AddToCartTypeExtension.php">
<MixedArgument occurrences="1">
<code>$cartItem->getVariant()->getSample()</code>
</MixedArgument>
<MixedAssignment occurrences="1">
<code>$product</code>
</MixedAssignment>
<PossiblyNullReference occurrences="2">
<code>getSample</code>
<code>getSampleOf</code>
</PossiblyNullReference>
<TypeDoesNotContainType occurrences="1">
<code>0 === $channel->getMaxSamplesPerOrder()</code>
</TypeDoesNotContainType>
<UndefinedInterfaceMethod occurrences="2">
<code>getSample</code>
<code>getSampleOf</code>
</UndefinedInterfaceMethod>
</file>
<file src="src/Form/Extension/CartItemTypeExtension.php">
<MixedMethodCall occurrences="2">
<code>getNonSampleVariants</code>
<code>getVariantSelectionMethod</code>
</MixedMethodCall>
</file>
<file src="src/Form/Extension/CartTypeExtension.php">
<PossiblyNullReference occurrences="1">
<code>getSampleOf</code>
</PossiblyNullReference>
<TypeDoesNotContainType occurrences="1">
<code>0 === $channel->getMaxSamplesPerOrder()</code>
</TypeDoesNotContainType>
<UndefinedInterfaceMethod occurrences="1">
<code>getSampleOf</code>
</UndefinedInterfaceMethod>
</file>
<file src="src/Form/Extension/ProductVariantTypeExtension.php">
<PossiblyNullArgument occurrences="1">
<code>$variant->getProduct()</code>
</PossiblyNullArgument>
<PossiblyNullReference occurrences="1">
<code>addVariant</code>
</PossiblyNullReference>
<UndefinedInterfaceMethod occurrences="1">
<code>setSampleOf</code>
</UndefinedInterfaceMethod>
</file>
<file src="src/Generator/ChannelAwareSampleVariantCodeGenerator.php">
<InvalidNullableReturnType occurrences="1">
<code>string</code>
</InvalidNullableReturnType>
<NullableReturnStatement occurrences="1">
<code>$channel->getSampleProductCodePrefix()</code>
</NullableReturnStatement>
<PossiblyNullArgument occurrences="2">
<code>$channel->getSampleProductCodePrefix()</code>
<code>$channel->getSampleProductCodePrefix()</code>
</PossiblyNullArgument>
<PossiblyNullOperand occurrences="1">
<code>$channel->getSampleProductCodePrefix()</code>
</PossiblyNullOperand>
</file>
<file src="src/Model/Product.php">
<LessSpecificReturnStatement occurrences="1"/>
<MoreSpecificReturnType occurrences="1">
<code>Collection</code>
</MoreSpecificReturnType>
</file>
<file src="src/Provider/SampleAwareProductVariantPricesProvider.php">
<ArgumentTypeCoercion occurrences="1">
<code>$sample</code>
</ArgumentTypeCoercion>
<DeprecatedClass occurrences="1">
<code>private</code>
</DeprecatedClass>
<PossiblyNullArgument occurrences="1">
<code>$sample</code>
</PossiblyNullArgument>
<PossiblyNullArrayOffset occurrences="1">
<code>$optionMap</code>
</PossiblyNullArrayOffset>
<PossiblyNullReference occurrences="1">
<code>getSamplesActive</code>
</PossiblyNullReference>
<UndefinedInterfaceMethod occurrences="1">
<code>getSamplesActive</code>
</UndefinedInterfaceMethod>
<UnnecessaryVarAnnotation occurrences="1">
<code>ProductOptionValueInterface</code>
</UnnecessaryVarAnnotation>
</file>
</files>