-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathpsalm-baseline.xml
More file actions
194 lines (194 loc) · 6.37 KB
/
psalm-baseline.xml
File metadata and controls
194 lines (194 loc) · 6.37 KB
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
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="4.30.0@d0bc6e25d89f649e4f36a534f330f8bb4643dd69">
<file src="src/Api.php">
<MixedArgument occurrences="1">
<code>$service</code>
</MixedArgument>
<MixedAssignment occurrences="1">
<code>$service</code>
</MixedAssignment>
</file>
<file src="src/ApiBlueprintModel.php">
<InvalidDocblockParamName occurrences="1">
<code>$resources</code>
</InvalidDocblockParamName>
<MixedArgument occurrences="5">
<code>$action</code>
<code>$action->getBodyProperties()</code>
<code>$action->getRequestDescription()</code>
<code>$property</code>
<code>$this->variables['documentation']</code>
</MixedArgument>
<MixedArrayAccess occurrences="2">
<code>$response['code']</code>
<code>$response['code']</code>
</MixedArrayAccess>
<MixedAssignment occurrences="4">
<code>$action</code>
<code>$property</code>
<code>$requestDescription</code>
<code>$response</code>
</MixedAssignment>
<MixedMethodCall occurrences="6">
<code>allowsChangingEntity</code>
<code>getBodyProperties</code>
<code>getDescription</code>
<code>getHttpMethod</code>
<code>getRequestDescription</code>
<code>getRequestDescription</code>
</MixedMethodCall>
<MixedOperand occurrences="3">
<code>$action->getDescription()</code>
<code>$action->getHttpMethod()</code>
<code>$response['code']</code>
</MixedOperand>
</file>
<file src="src/ApiBlueprintRenderer.php">
<ImplementedParamTypeMismatch occurrences="1">
<code>$nameOrModel</code>
</ImplementedParamTypeMismatch>
<ImplementedReturnTypeMismatch occurrences="1">
<code>void</code>
</ImplementedReturnTypeMismatch>
<MissingConstructor occurrences="1">
<code>$requestUri</code>
</MissingConstructor>
<MixedInferredReturnType occurrences="1">
<code>string</code>
</MixedInferredReturnType>
<UndefinedDocblockClass occurrences="1">
<code>string|ModelInterface</code>
</UndefinedDocblockClass>
<UndefinedThisPropertyAssignment occurrences="1">
<code>$this->resolver</code>
</UndefinedThisPropertyAssignment>
</file>
<file src="src/ApiBlueprintViewStrategy.php">
<InvalidPropertyAssignmentValue occurrences="1">
<code>$model</code>
</InvalidPropertyAssignmentValue>
<MixedArgument occurrences="1">
<code>$e->getRequest()->getUri()</code>
</MixedArgument>
<MixedAssignment occurrences="1">
<code>$headers</code>
</MixedAssignment>
<MixedMethodCall occurrences="1">
<code>addHeaderLine</code>
</MixedMethodCall>
<PossiblyNullArgument occurrences="1">
<code>$response</code>
</PossiblyNullArgument>
<PossiblyNullReference occurrences="1">
<code>getUri</code>
</PossiblyNullReference>
<PropertyNotSetInConstructor occurrences="1">
<code>$model</code>
</PropertyNotSetInConstructor>
<RedundantConditionGivenDocblockType occurrences="1">
<code>$this->model instanceof ApiBlueprintModel</code>
</RedundantConditionGivenDocblockType>
<UndefinedDocblockClass occurrences="1">
<code>ViewModel</code>
</UndefinedDocblockClass>
<UndefinedInterfaceMethod occurrences="1">
<code>getUri</code>
</UndefinedInterfaceMethod>
</file>
<file src="src/ApiBlueprintViewStrategyFactory.php">
<MixedArgument occurrences="1">
<code>$container->get(ApiBlueprintRenderer::class)</code>
</MixedArgument>
</file>
<file src="src/Controller.php">
<MixedArgument occurrences="2">
<code>$apiName</code>
<code>$apiVersion</code>
</MixedArgument>
<MixedAssignment occurrences="2">
<code>$apiName</code>
<code>$apiVersion</code>
</MixedAssignment>
<MixedMethodCall occurrences="2">
<code>fromRoute</code>
<code>fromRoute</code>
</MixedMethodCall>
<PropertyNotSetInConstructor occurrences="5">
<code>Controller</code>
<code>Controller</code>
<code>Controller</code>
<code>Controller</code>
<code>Controller</code>
</PropertyNotSetInConstructor>
</file>
<file src="src/ControllerFactory.php">
<DeprecatedInterface occurrences="1">
<code>ControllerFactory</code>
</DeprecatedInterface>
<MixedArgument occurrences="2">
<code>$apiFactory</code>
<code>$container</code>
</MixedArgument>
<MixedAssignment occurrences="2">
<code>$apiFactory</code>
<code>$container</code>
</MixedAssignment>
<ParamNameMismatch occurrences="1">
<code>$controllers</code>
</ParamNameMismatch>
<UndefinedInterfaceMethod occurrences="1">
<code>getServiceLocator</code>
</UndefinedInterfaceMethod>
</file>
<file src="src/Module.php">
<MixedAssignment occurrences="2">
<code>$events</code>
<code>$view</code>
</MixedAssignment>
<MixedInferredReturnType occurrences="1">
<code>array</code>
</MixedInferredReturnType>
<MixedMethodCall occurrences="2">
<code>attach</code>
<code>getEventManager</code>
</MixedMethodCall>
<MixedReturnStatement occurrences="1">
<code>include __DIR__ . '/../config/module.config.php'</code>
</MixedReturnStatement>
</file>
<file src="src/Resource.php">
<PropertyTypeCoercion occurrences="1">
<code>$resourceType</code>
</PropertyTypeCoercion>
</file>
<file src="src/ResourceGroup.php">
<PossiblyFalseArgument occurrences="1">
<code>strpos($this->service->getRoute(), '[')</code>
</PossiblyFalseArgument>
</file>
<file src="test/ApiBlueprintViewStrategyTest.php">
<InvalidArgument occurrences="2">
<code>$event</code>
<code>$event</code>
</InvalidArgument>
<MixedArgument occurrences="1">
<code>$header->getFieldValue()</code>
</MixedArgument>
<PossiblyInvalidMethodCall occurrences="1">
<code>getFieldValue</code>
</PossiblyInvalidMethodCall>
<PossiblyUndefinedMethod occurrences="1">
<code>getFieldValue</code>
</PossiblyUndefinedMethod>
</file>
<file src="test/ResourceTest.php">
<MixedMethodCall occurrences="3">
<code>method</code>
<code>willReturn</code>
<code>with</code>
</MixedMethodCall>
<PossiblyUndefinedMethod occurrences="1">
<code>expects</code>
</PossiblyUndefinedMethod>
</file>
</files>