-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpstan-baseline.neon
182 lines (146 loc) · 10.5 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
parameters:
ignoreErrors:
-
message: "#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#"
count: 1
path: src/BabDevSyliusProductSamplesPlugin.php
-
message: "#^Method BabDev\\\\SyliusProductSamplesPlugin\\\\Doctrine\\\\ORM\\\\ProductVariantRepository\\:\\:createQueryBuilderByProductId\\(\\) has parameter \\$productId with no type specified\\.$#"
count: 1
path: src/Doctrine/ORM/ProductVariantRepository.php
-
message: "#^Call to static method Webmozart\\\\Assert\\\\Assert\\:\\:isInstanceOf\\(\\) with BabDev\\\\SyliusProductSamplesPlugin\\\\Model\\\\ProductInterface and 'BabDev\\\\\\\\SyliusProductSamplesPlugin\\\\\\\\Model\\\\\\\\ProductInterface' will always evaluate to true\\.$#"
count: 1
path: src/EventListener/SampleVariantGeneratorListener.php
-
message: "#^Cannot call method getCode\\(\\) on Sylius\\\\Component\\\\Core\\\\Model\\\\ChannelInterface\\|null\\.$#"
count: 1
path: src/EventListener/SampleVariantGeneratorListener.php
-
message: "#^Parameter \\#2 \\$channel of method BabDev\\\\SyliusProductSamplesPlugin\\\\EventListener\\\\SampleVariantGeneratorListener\\:\\:createChannelPricingForChannel\\(\\) expects Sylius\\\\Component\\\\Core\\\\Model\\\\ChannelInterface\\|null, Sylius\\\\Component\\\\Channel\\\\Model\\\\ChannelInterface given\\.$#"
count: 1
path: src/EventListener/SampleVariantGeneratorListener.php
-
message: "#^Call to static method Webmozart\\\\Assert\\\\Assert\\:\\:isInstanceOf\\(\\) with BabDev\\\\SyliusProductSamplesPlugin\\\\Model\\\\ProductVariantInterface and 'BabDev\\\\\\\\SyliusProductSamplesPlugin\\\\\\\\Model\\\\\\\\ProductVariantInterface' will always evaluate to true\\.$#"
count: 1
path: src/Form/EventSubscriber/ManageSampleProductVariantAssignmentsFormSubscriber.php
-
message: "#^Cannot call method getData\\(\\) on Symfony\\\\Component\\\\Form\\\\FormInterface\\|null\\.$#"
count: 1
path: src/Form/EventSubscriber/ManageSampleProductVariantAssignmentsFormSubscriber.php
-
message: "#^Cannot call method getParent\\(\\) on Symfony\\\\Component\\\\Form\\\\FormInterface\\|null\\.$#"
count: 1
path: src/Form/EventSubscriber/ManageSampleProductVariantAssignmentsFormSubscriber.php
-
message: "#^Cannot call method getSamplesActive\\(\\) on Sylius\\\\Component\\\\Product\\\\Model\\\\ProductInterface\\|null\\.$#"
count: 1
path: src/Form/EventSubscriber/ManageSampleProductVariantAssignmentsFormSubscriber.php
-
message: "#^Cannot call method removeVariant\\(\\) on Sylius\\\\Component\\\\Product\\\\Model\\\\ProductInterface\\|null\\.$#"
count: 1
path: src/Form/EventSubscriber/ManageSampleProductVariantAssignmentsFormSubscriber.php
-
message: "#^Only booleans are allowed in a negated boolean, mixed given\\.$#"
count: 1
path: src/Form/EventSubscriber/ManageSampleProductVariantAssignmentsFormSubscriber.php
-
message: "#^Call to static method Webmozart\\\\Assert\\\\Assert\\:\\:isInstanceOf\\(\\) with BabDev\\\\SyliusProductSamplesPlugin\\\\Model\\\\ProductVariantInterface and 'BabDev\\\\\\\\SyliusProductSamplesPlugin\\\\\\\\Model\\\\\\\\ProductVariantInterface' will always evaluate to true\\.$#"
count: 1
path: src/Form/EventSubscriber/SynchronizeSampleProductVariantOptionValuesFormSubscriber.php
-
message: "#^Call to static method Webmozart\\\\Assert\\\\Assert\\:\\:isInstanceOf\\(\\) with BabDev\\\\SyliusProductSamplesPlugin\\\\Model\\\\ProductVariantInterface and 'BabDev\\\\\\\\SyliusProductSamplesPlugin\\\\\\\\Model\\\\\\\\ProductVariantInterface' will always evaluate to true\\.$#"
count: 1
path: src/Form/EventSubscriber/SynchronizeSampleProductVariantTranslationsFormSubscriber.php
-
message: "#^Call to static method Webmozart\\\\Assert\\\\Assert\\:\\:isInstanceOf\\(\\) with BabDev\\\\SyliusProductSamplesPlugin\\\\Model\\\\ChannelInterface and 'BabDev\\\\\\\\SyliusProductSamplesPlugin\\\\\\\\Model\\\\\\\\ChannelInterface' will always evaluate to true\\.$#"
count: 1
path: src/Form/Extension/AddToCartTypeExtension.php
-
message: "#^Parameter \\#1 \\$variant of method Sylius\\\\Component\\\\Core\\\\Model\\\\OrderItemInterface\\:\\:setVariant\\(\\) expects Sylius\\\\Component\\\\Core\\\\Model\\\\ProductVariantInterface\\|null, Sylius\\\\Component\\\\Product\\\\Model\\\\ProductVariantInterface\\|null given\\.$#"
count: 1
path: src/Form/Extension/AddToCartTypeExtension.php
-
message: "#^Strict comparison using \\=\\=\\= between 0 and int\\<1, max\\> will always evaluate to false\\.$#"
count: 1
path: src/Form/Extension/AddToCartTypeExtension.php
-
message: "#^Call to static method Webmozart\\\\Assert\\\\Assert\\:\\:isInstanceOf\\(\\) with BabDev\\\\SyliusProductSamplesPlugin\\\\Model\\\\ChannelInterface and 'BabDev\\\\\\\\SyliusProductSamplesPlugin\\\\\\\\Model\\\\\\\\ChannelInterface' will always evaluate to true\\.$#"
count: 1
path: src/Form/Extension/CartTypeExtension.php
-
message: "#^Strict comparison using \\=\\=\\= between 0 and int\\<1, max\\> will always evaluate to false\\.$#"
count: 1
path: src/Form/Extension/CartTypeExtension.php
-
message: "#^Call to an undefined method Sylius\\\\Component\\\\Product\\\\Model\\\\ProductVariantInterface\\:\\:setSampleOf\\(\\)\\.$#"
count: 1
path: src/Form/Extension/ProductVariantTypeExtension.php
-
message: "#^Cannot call method addVariant\\(\\) on Sylius\\\\Component\\\\Product\\\\Model\\\\ProductInterface\\|null\\.$#"
count: 1
path: src/Form/Extension/ProductVariantTypeExtension.php
-
message: "#^Parameter \\#1 \\$product of method Sylius\\\\Component\\\\Product\\\\Factory\\\\ProductVariantFactoryInterface\\:\\:createForProduct\\(\\) expects Sylius\\\\Component\\\\Product\\\\Model\\\\ProductInterface, Sylius\\\\Component\\\\Product\\\\Model\\\\ProductInterface\\|null given\\.$#"
count: 1
path: src/Form/Extension/ProductVariantTypeExtension.php
-
message: "#^Call to static method Webmozart\\\\Assert\\\\Assert\\:\\:isInstanceOf\\(\\) with BabDev\\\\SyliusProductSamplesPlugin\\\\Model\\\\ChannelInterface and 'BabDev\\\\\\\\SyliusProductSamplesPlugin\\\\\\\\Model\\\\\\\\ChannelInterface' will always evaluate to true\\.$#"
count: 2
path: src/Generator/ChannelAwareSampleVariantCodeGenerator.php
-
message: "#^Method BabDev\\\\SyliusProductSamplesPlugin\\\\Model\\\\Product\\:\\:getNonSampleVariants\\(\\) should return Doctrine\\\\Common\\\\Collections\\\\Collection\\<\\(int\\|string\\), BabDev\\\\SyliusProductSamplesPlugin\\\\Model\\\\ProductVariantInterface\\> but returns Doctrine\\\\Common\\\\Collections\\\\Collection\\<\\(int\\|string\\), Sylius\\\\Component\\\\Product\\\\Model\\\\ProductVariantInterface\\>\\.$#"
count: 1
path: src/Model/Product.php
-
message: "#^Call to static method Webmozart\\\\Assert\\\\Assert\\:\\:isInstanceOf\\(\\) with BabDev\\\\SyliusProductSamplesPlugin\\\\Model\\\\ProductVariantInterface and 'BabDev\\\\\\\\SyliusProductSamplesPlugin\\\\\\\\Model\\\\\\\\ProductVariantInterface' will always evaluate to true\\.$#"
count: 1
path: src/Provider/SampleAwareProductVariantPricesProvider.php
-
message: "#^Cannot call method getSamplesActive\\(\\) on Sylius\\\\Component\\\\Product\\\\Model\\\\ProductInterface\\|null\\.$#"
count: 1
path: src/Provider/SampleAwareProductVariantPricesProvider.php
-
message: "#^PHPDoc tag @var for variable \\$appliedPromotions contains generic class Doctrine\\\\Common\\\\Collections\\\\ArrayCollection but does not specify its types\\: TKey, T$#"
count: 1
path: src/Provider/SampleAwareProductVariantPricesProvider.php
-
message: "#^Parameter \\#1 \\$productVariant of method Sylius\\\\Component\\\\Core\\\\Calculator\\\\ProductVariantPriceCalculatorInterface\\:\\:calculate\\(\\) expects Sylius\\\\Component\\\\Core\\\\Model\\\\ProductVariantInterface, Sylius\\\\Component\\\\Product\\\\Model\\\\ProductVariantInterface\\|null given\\.$#"
count: 1
path: src/Provider/SampleAwareProductVariantPricesProvider.php
-
message: "#^Cannot call method getCode\\(\\) on Sylius\\\\Component\\\\Core\\\\Model\\\\ChannelInterface\\|null\\.$#"
count: 1
path: tests/Behat/Context/Setup/ProductContext.php
-
message: "#^Parameter \\#2 \\$channel of method Tests\\\\BabDev\\\\SyliusProductSamplesPlugin\\\\Behat\\\\Context\\\\Setup\\\\ProductContext\\:\\:createChannelPricingForChannel\\(\\) expects Sylius\\\\Component\\\\Core\\\\Model\\\\ChannelInterface\\|null, Sylius\\\\Component\\\\Channel\\\\Model\\\\ChannelInterface given\\.$#"
count: 1
path: tests/Behat/Context/Setup/ProductContext.php
-
message: "#^Cannot call method getId\\(\\) on Sylius\\\\Component\\\\Product\\\\Model\\\\ProductInterface\\|null\\.$#"
count: 2
path: tests/Behat/Context/Ui/Admin/ManagingProductVariantsContext.php
-
message: "#^Method Tests\\\\BabDev\\\\SyliusProductSamplesPlugin\\\\Behat\\\\Page\\\\Admin\\\\Channel\\\\UpdatePage\\:\\:getMaxSamplesPerOrder\\(\\) should return string but returns array\\|bool\\|string\\.$#"
count: 1
path: tests/Behat/Page/Admin/Channel/UpdatePage.php
-
message: "#^Method Tests\\\\BabDev\\\\SyliusProductSamplesPlugin\\\\Behat\\\\Page\\\\Admin\\\\Channel\\\\UpdatePage\\:\\:getSampleProductCodePrefix\\(\\) should return string but returns array\\|bool\\|string\\.$#"
count: 1
path: tests/Behat/Page/Admin/Channel/UpdatePage.php
-
message: "#^Method Tests\\\\BabDev\\\\SyliusProductSamplesPlugin\\\\Behat\\\\Page\\\\Admin\\\\Product\\\\UpdateSimpleProductPage\\:\\:getOriginalSamplePriceForChannel\\(\\) should return string but returns array\\|bool\\|string\\.$#"
count: 1
path: tests/Behat/Page/Admin/Product/UpdateSimpleProductPage.php
-
message: "#^Method Tests\\\\BabDev\\\\SyliusProductSamplesPlugin\\\\Behat\\\\Page\\\\Admin\\\\Product\\\\UpdateSimpleProductPage\\:\\:getSamplePriceForChannel\\(\\) should return string but returns array\\|bool\\|string\\.$#"
count: 1
path: tests/Behat/Page/Admin/Product/UpdateSimpleProductPage.php
-
message: "#^Method Tests\\\\BabDev\\\\SyliusProductSamplesPlugin\\\\Behat\\\\Page\\\\Admin\\\\ProductVariant\\\\UpdatePage\\:\\:getOriginalSamplePriceForChannel\\(\\) should return string but returns array\\|bool\\|string\\.$#"
count: 1
path: tests/Behat/Page/Admin/ProductVariant/UpdatePage.php
-
message: "#^Method Tests\\\\BabDev\\\\SyliusProductSamplesPlugin\\\\Behat\\\\Page\\\\Admin\\\\ProductVariant\\\\UpdatePage\\:\\:getSamplePriceForChannel\\(\\) should return string but returns array\\|bool\\|string\\.$#"
count: 1
path: tests/Behat/Page/Admin/ProductVariant/UpdatePage.php