-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpsalm-baseline.xml
186 lines (186 loc) · 6.41 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
<?xml version="1.0" encoding="UTF-8"?>
<!--
- SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
- SPDX-License-Identifier: AGPL-3.0-or-later
-->
<files psalm-version="5.24.0@462c80e31c34e58cc4f750c656be3927e80e550e">
<file src="lib/Controller/AdminController.php">
<MixedArgument>
<code><![CDATA[$upload['tmp_name']]]></code>
</MixedArgument>
<MixedArgumentTypeCoercion>
<code><![CDATA[$value]]></code>
<code><![CDATA[array_map(static fn ($label):array => $label->toArray(), $labels)]]></code>
</MixedArgumentTypeCoercion>
<UndefinedClass>
<code><![CDATA[JsonException]]></code>
</UndefinedClass>
</file>
<file src="lib/Model/ClassificationLabel.php">
<MismatchingDocblockReturnType>
<code><![CDATA[IClassificationLabel]]></code>
</MismatchingDocblockReturnType>
<MixedInferredReturnType>
<code><![CDATA[IClassificationLabel]]></code>
</MixedInferredReturnType>
</file>
<file src="lib/Model/MetadataItem.php">
<MixedArgument>
<code><![CDATA[$metadataItem['key'] ?? '']]></code>
<code><![CDATA[$metadataItem['value'] ?? '']]></code>
</MixedArgument>
</file>
<file src="lib/Providers/BailsProviders/MicrosoftOfficeBailsProvider.php">
<MixedAssignment>
<code><![CDATA[$service]]></code>
</MixedAssignment>
<MixedMethodCall>
<code><![CDATA[parse]]></code>
</MixedMethodCall>
<MixedPropertyAssignment>
<code><![CDATA[$service]]></code>
</MixedPropertyAssignment>
<UndefinedClass>
<code><![CDATA[ParseException]]></code>
<code><![CDATA[Reader]]></code>
<code><![CDATA[Service]]></code>
</UndefinedClass>
</file>
<file src="lib/Providers/BailsProviders/OpenDocumentBailsProvider.php">
<MixedAssignment>
<code><![CDATA[$service]]></code>
</MixedAssignment>
<MixedMethodCall>
<code><![CDATA[parse]]></code>
</MixedMethodCall>
<MixedPropertyAssignment>
<code><![CDATA[$service]]></code>
</MixedPropertyAssignment>
<UndefinedClass>
<code><![CDATA[ParseException]]></code>
<code><![CDATA[Reader]]></code>
<code><![CDATA[Reader]]></code>
<code><![CDATA[Service]]></code>
</UndefinedClass>
</file>
<file src="lib/Providers/ContentProviders/MicrosoftContentProvider.php">
<MissingClosureReturnType>
<code><![CDATA[function (Reader $reader) {]]></code>
<code><![CDATA[function (Reader $reader) {]]></code>
</MissingClosureReturnType>
<MixedArgument>
<code><![CDATA[$service->parse($xml)]]></code>
<code><![CDATA[$service->parse($xml)]]></code>
</MixedArgument>
<MixedArrayAccess>
<code><![CDATA[$child['attributes']]]></code>
<code><![CDATA[$child['attributes']['string']]]></code>
<code><![CDATA[$child['name']]]></code>
<code><![CDATA[$child['name']]]></code>
<code><![CDATA[$child['value']]]></code>
<code><![CDATA[$child['value']]]></code>
<code><![CDATA[$child['value']]]></code>
<code><![CDATA[$child['value']]]></code>
<code><![CDATA[$child['value']]]></code>
<code><![CDATA[$child['value']]]></code>
</MixedArrayAccess>
<MixedAssignment>
<code><![CDATA[$child]]></code>
<code><![CDATA[$child]]></code>
<code><![CDATA[$children]]></code>
<code><![CDATA[$children]]></code>
<code><![CDATA[$newChildrenArray[]]]></code>
<code><![CDATA[$newChildrenArray[]]]></code>
<code><![CDATA[$newChildrenArray[]]]></code>
<code><![CDATA[$service]]></code>
<code><![CDATA[$tree]]></code>
<code><![CDATA[$tree]]></code>
</MixedAssignment>
<MixedMethodCall>
<code><![CDATA[parse]]></code>
</MixedMethodCall>
<MixedPropertyAssignment>
<code><![CDATA[$service]]></code>
</MixedPropertyAssignment>
<UndefinedClass>
<code><![CDATA[$reader]]></code>
<code><![CDATA[$reader]]></code>
<code><![CDATA[$service]]></code>
<code><![CDATA[$service]]></code>
<code><![CDATA[$service->elementMap]]></code>
<code><![CDATA[$service->elementMap]]></code>
<code><![CDATA[ParseException]]></code>
<code><![CDATA[ParseException]]></code>
<code><![CDATA[ParseException]]></code>
<code><![CDATA[Reader]]></code>
<code><![CDATA[Service]]></code>
<code><![CDATA[Service]]></code>
<code><![CDATA[Service]]></code>
</UndefinedClass>
</file>
<file src="lib/Providers/ContentProviders/OpenDocumentContentProvider.php">
<MixedArgument>
<code><![CDATA[$service->parse($xml)]]></code>
</MixedArgument>
<MixedAssignment>
<code><![CDATA[$service]]></code>
</MixedAssignment>
<MixedMethodCall>
<code><![CDATA[parse]]></code>
</MixedMethodCall>
<MixedPropertyAssignment>
<code><![CDATA[$service]]></code>
</MixedPropertyAssignment>
<UndefinedClass>
<code><![CDATA[ParseException]]></code>
<code><![CDATA[Reader]]></code>
<code><![CDATA[Service]]></code>
</UndefinedClass>
</file>
<file src="lib/Providers/ContentProviders/PdfContentProvider.php">
<RiskyTruthyFalsyComparison>
<code><![CDATA[!$localFilepath]]></code>
</RiskyTruthyFalsyComparison>
</file>
<file src="lib/Providers/MetadataProviders/MicrosoftOfficeMetadataProvider.php">
<MixedAssignment>
<code><![CDATA[$service]]></code>
</MixedAssignment>
<MixedMethodCall>
<code><![CDATA[parse]]></code>
</MixedMethodCall>
<MixedPropertyAssignment>
<code><![CDATA[$service]]></code>
</MixedPropertyAssignment>
<UndefinedClass>
<code><![CDATA[ParseException]]></code>
<code><![CDATA[Reader]]></code>
<code><![CDATA[Service]]></code>
</UndefinedClass>
</file>
<file src="lib/Service/BafService.php">
<MixedAssignment>
<code><![CDATA[$service]]></code>
</MixedAssignment>
<MixedMethodCall>
<code><![CDATA[parse]]></code>
</MixedMethodCall>
<MixedPropertyAssignment>
<code><![CDATA[$service]]></code>
</MixedPropertyAssignment>
<UndefinedClass>
<code><![CDATA[ParseException]]></code>
<code><![CDATA[Reader]]></code>
<code><![CDATA[Reader]]></code>
<code><![CDATA[Service]]></code>
</UndefinedClass>
</file>
<file src="lib/Service/SettingsService.php">
<InvalidArgument>
<code><![CDATA[$labelRaw]]></code>
</InvalidArgument>
<MixedArgument>
<code><![CDATA[$labelRaw]]></code>
</MixedArgument>
</file>
</files>