-
Notifications
You must be signed in to change notification settings - Fork 3
/
psalm.baseline.xml
272 lines (272 loc) · 9.91 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
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
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="4.13.1@5cf660f63b548ccd4a56f62d916ee4d6028e01a3">
<file src="src/Mealz/AccountingBundle/Controller/AccountingAdminController.php">
<InvalidNullableReturnType occurrences="1">
<code>Profile</code>
</InvalidNullableReturnType>
<NullableReturnStatement occurrences="1">
<code>$this->getDoctrine()->getManager()->find(Profile::class, $profileId)</code>
</NullableReturnStatement>
</file>
<file src="src/Mealz/AccountingBundle/Controller/AccountingBookController.php">
<InvalidScalarArgument occurrences="1">
<code>0</code>
</InvalidScalarArgument>
<TooManyArguments occurrences="1">
<code>create</code>
</TooManyArguments>
<UndefinedConstant occurrences="3">
<code>PDF_PAGE_FORMAT</code>
<code>PDF_PAGE_ORIENTATION</code>
<code>PDF_UNIT</code>
</UndefinedConstant>
</file>
<file src="src/Mealz/AccountingBundle/Controller/CostSheetController.php">
<InvalidArgument occurrences="3">
<code>$receiver</code>
<code>$secret</code>
<code>$this->getParameter('app.base_url')</code>
</InvalidArgument>
</file>
<file src="src/Mealz/AccountingBundle/Controller/Payment/CashController.php">
<InvalidDocblock occurrences="1"/>
<MissingDocblockType occurrences="1">
<code>$participation</code>
</MissingDocblockType>
</file>
<file src="src/Mealz/AccountingBundle/Entity/TransactionRepository.php">
<UndefinedDocblockClass occurrences="1">
<code>\Doctrine\DBAL\DBALException</code>
</UndefinedDocblockClass>
</file>
<file src="src/Mealz/AccountingBundle/ParticipantList/ParticipantList.php">
<InvalidReturnStatement occurrences="1">
<code>$price</code>
</InvalidReturnStatement>
<InvalidReturnType occurrences="1">
<code>int</code>
</InvalidReturnType>
</file>
<file src="src/Mealz/AccountingBundle/Service/Wallet.php">
<InvalidReturnStatement occurrences="1">
<code>bcsub($transactions, $costs, 2)</code>
</InvalidReturnStatement>
<InvalidReturnType occurrences="1">
<code>float</code>
</InvalidReturnType>
<InvalidScalarArgument occurrences="2">
<code>$costs</code>
<code>$transactions</code>
</InvalidScalarArgument>
</file>
<file src="src/Mealz/AccountingBundle/Tests/Controller/AccountingBookControllerTest.php">
<InvalidScalarArgument occurrences="1">
<code>0</code>
</InvalidScalarArgument>
<UndefinedInterfaceMethod occurrences="4">
<code>clear</code>
<code>clear</code>
<code>clear</code>
<code>findUserDataAndTransactionAmountForGivenPeriod</code>
</UndefinedInterfaceMethod>
</file>
<file src="src/Mealz/AccountingBundle/Tests/Controller/CostSheetControllerTest.php">
<UndefinedInterfaceMethod occurrences="2">
<code>getTotalAmount</code>
<code>getTotalAmount</code>
</UndefinedInterfaceMethod>
</file>
<file src="src/Mealz/AccountingBundle/Tests/Service/PayPal/PayPalServiceTest.php">
<TooManyArguments occurrences="3">
<code>willReturn</code>
<code>willReturn</code>
<code>willReturn</code>
</TooManyArguments>
</file>
<file src="src/Mealz/AccountingBundle/Tests/Service/TransactionServiceTest.php">
<TooManyArguments occurrences="2">
<code>willReturn</code>
<code>willReturn</code>
</TooManyArguments>
</file>
<file src="src/Mealz/MealBundle/Controller/BaseController.php">
<InvalidParamDefault occurrences="1">
<code>bool</code>
</InvalidParamDefault>
<InvalidScalarArgument occurrences="1">
<code>$referenceType</code>
</InvalidScalarArgument>
</file>
<file src="src/Mealz/MealBundle/Controller/BaseListController.php">
<FalsableReturnStatement occurrences="1">
<code>$renderedForm->getContent()</code>
</FalsableReturnStatement>
</file>
<file src="src/Mealz/MealBundle/Controller/MealAdminController.php">
<InvalidArgument occurrences="1">
<code>$dateTimeModifier</code>
</InvalidArgument>
<InvalidScalarArgument occurrences="4">
<code>$dateTime->format('W')</code>
<code>$dateTime->format('o')</code>
<code>$modifiedDateTime->format('W')</code>
<code>$modifiedDateTime->format('o')</code>
</InvalidScalarArgument>
<UndefinedInterfaceMethod occurrences="2">
<code>isClicked</code>
<code>isClicked</code>
</UndefinedInterfaceMethod>
</file>
<file src="src/Mealz/MealBundle/Entity/Dish.php">
<InvalidNullableReturnType occurrences="1">
<code>string</code>
</InvalidNullableReturnType>
<NullableReturnStatement occurrences="1">
<code>$this->title_de</code>
</NullableReturnStatement>
</file>
<file src="src/Mealz/MealBundle/Entity/ParticipantRepository.php">
<TooManyArguments occurrences="2">
<code>orX</code>
<code>where</code>
</TooManyArguments>
</file>
<file src="src/Mealz/MealBundle/Form/DataTransformer/EntityToIdTransformer.php">
<ParamNameMismatch occurrences="2">
<code>$entity</code>
<code>$identifier</code>
</ParamNameMismatch>
</file>
<file src="src/Mealz/MealBundle/Form/DataTransformer/ProfileToStringTransformer.php">
<MoreSpecificImplementedParamType occurrences="1">
<code>$value</code>
</MoreSpecificImplementedParamType>
</file>
<file src="src/Mealz/MealBundle/Form/MealAdmin/MealForm.php">
<TypeDoesNotContainNull occurrences="1">
<code>null === $meal->getDateTime()</code>
</TypeDoesNotContainNull>
</file>
<file src="src/Mealz/MealBundle/Form/Type/DishSelectorCreatorType.php">
<UndefinedClass occurrences="1">
<code>DishStringToValuesTransformer</code>
</UndefinedClass>
</file>
<file src="src/Mealz/MealBundle/Service/Doorman.php">
<UndefinedInterfaceMethod occurrences="3">
<code>getProfile</code>
</UndefinedInterfaceMethod>
</file>
<file src="src/Mealz/MealBundle/Service/Link.php">
<NullArgument occurrences="1">
<code>$action</code>
</NullArgument>
</file>
<file src="src/Mealz/MealBundle/Service/Workday.php">
<InvalidScalarArgument occurrences="1">
<code>$year</code>
</InvalidScalarArgument>
</file>
<file src="src/Mealz/MealBundle/Tests/AbstractDatabaseTestCase.php">
<InvalidNullableReturnType occurrences="1">
<code>Registry</code>
</InvalidNullableReturnType>
<NullableReturnStatement occurrences="1">
<code>static::$kernel->getContainer()->get('doctrine')</code>
</NullableReturnStatement>
</file>
<file src="src/Mealz/MealBundle/Tests/Controller/AbstractControllerTestCase.php">
<ImplicitToStringCast occurrences="1">
<code>$user->getRoles()</code>
</ImplicitToStringCast>
</file>
<file src="src/Mealz/MealBundle/Tests/Controller/CategoryControllerTest.php">
<InvalidArrayOffset occurrences="1">
<code>$form['category']['category']</code>
</InvalidArrayOffset>
</file>
<file src="src/Mealz/MealBundle/Tests/Controller/DishVariationControllerTest.php">
<InvalidArgument occurrences="1">
<code>$host</code>
</InvalidArgument>
<InvalidNullableReturnType occurrences="1">
<code>DishVariation</code>
</InvalidNullableReturnType>
<InvalidOperand occurrences="1">
<code>$dishId</code>
</InvalidOperand>
<InvalidReturnStatement occurrences="1">
<code>$dishId</code>
</InvalidReturnStatement>
<InvalidReturnType occurrences="1">
<code>Crawler</code>
</InvalidReturnType>
<NullableReturnStatement occurrences="1">
<code>$dishVariation</code>
</NullableReturnStatement>
<RedundantCondition occurrences="3">
<code>count($result)</code>
<code>is_array($result)</code>
<code>is_array($result) && count($result)</code>
</RedundantCondition>
</file>
<file src="src/Mealz/MealBundle/Tests/Controller/MealControllerTest.php">
<UndefinedInterfaceMethod occurrences="1">
<code>getOutdatedMeals</code>
</UndefinedInterfaceMethod>
<UndefinedMethod occurrences="1">
<code>$form['invitation_form[day][meals]']</code>
</UndefinedMethod>
</file>
<file src="src/Mealz/MealBundle/Tests/Controller/ParticipantControllerTest.php">
<UndefinedInterfaceMethod occurrences="1">
<code>getOutdatedMeals</code>
</UndefinedInterfaceMethod>
</file>
<file src="src/Mealz/MealBundle/Tests/Service/AbstractParticipationServiceTest.php">
<TooManyArguments occurrences="2">
<code>willReturn</code>
<code>willReturn</code>
</TooManyArguments>
</file>
<file src="src/Mealz/MealBundle/Twig/Extension/Doorman.php">
<LessSpecificImplementedReturnType occurrences="1">
<code>array</code>
</LessSpecificImplementedReturnType>
<TooManyArguments occurrences="1">
<code>isOfferAvailable</code>
</TooManyArguments>
</file>
<file src="src/Mealz/MealBundle/Validator/Constraints/DishConstraintValidator.php">
<ParamNameMismatch occurrences="1">
<code>$entity</code>
</ParamNameMismatch>
<TooManyArguments occurrences="1">
<code>flush</code>
</TooManyArguments>
</file>
<file src="src/Mealz/UserBundle/DataFixtures/ORM/LoadAnonymousUsers.php">
<UndefinedInterfaceMethod occurrences="2">
<code>getConnection</code>
<code>getConnection</code>
</UndefinedInterfaceMethod>
</file>
<file src="src/Mealz/UserBundle/Tests/Service/OAuthProviderTest.php">
<TooManyArguments occurrences="5">
<code>willReturn</code>
<code>willReturn</code>
<code>willReturn</code>
<code>willReturn</code>
<code>willReturn</code>
</TooManyArguments>
</file>
<file src="src/Resources/node_modules/flatted/php/flatted.php">
<UndefinedPropertyFetch occurrences="2">
<code>$value->value</code>
<code>$value->value</code>
</UndefinedPropertyFetch>
<UndefinedThisPropertyAssignment occurrences="1">
<code>$this->value</code>
</UndefinedThisPropertyAssignment>
</file>
</files>