-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathpsalm-baseline.xml
164 lines (164 loc) · 5.36 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
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="4.9.3@4c262932602b9bbab5020863d1eb22d49de0dbf4">
<file src="src/Factory/OptionsListenerFactory.php">
<MixedArrayAccess occurrences="1">
<code>$config['api-tools-rpc']</code>
</MixedArrayAccess>
<MixedAssignment occurrences="1">
<code>$config</code>
</MixedAssignment>
<MixedInferredReturnType occurrences="1">
<code>array</code>
</MixedInferredReturnType>
<MixedReturnStatement occurrences="1">
<code>$config['api-tools-rpc']</code>
</MixedReturnStatement>
</file>
<file src="src/Factory/RpcControllerFactory.php">
<DeprecatedInterface occurrences="1">
<code>RpcControllerFactory</code>
</DeprecatedInterface>
<MixedArgument occurrences="4">
<code>$container</code>
<code>$container</code>
<code>$container->get('ControllerManager')</code>
<code>$string</code>
</MixedArgument>
<MixedArrayAccess occurrences="2">
<code>$config['api-tools-rpc']</code>
<code>$config['api-tools-rpc']</code>
</MixedArrayAccess>
<MixedAssignment occurrences="5">
<code>$config</code>
<code>$config</code>
<code>$config</code>
<code>$container</code>
<code>$container</code>
</MixedAssignment>
<MixedMethodCall occurrences="1">
<code>new $class()</code>
</MixedMethodCall>
<ParamNameMismatch occurrences="2">
<code>$controllerManager</code>
<code>$controllerManager</code>
</ParamNameMismatch>
<PossiblyInvalidArgument occurrences="1">
<code>$callable</code>
</PossiblyInvalidArgument>
<UndefinedInterfaceMethod occurrences="2">
<code>getServiceLocator</code>
<code>getServiceLocator</code>
</UndefinedInterfaceMethod>
</file>
<file src="src/Module.php">
<MixedAssignment occurrences="3">
<code>$optionsListener</code>
<code>$strategy</code>
<code>$view</code>
</MixedAssignment>
<MixedInferredReturnType occurrences="1">
<code>array</code>
</MixedInferredReturnType>
<MixedMethodCall occurrences="4">
<code>attach</code>
<code>attach</code>
<code>getEventManager</code>
<code>getView</code>
</MixedMethodCall>
<MixedReturnStatement occurrences="1">
<code>include __DIR__ . '/../config/module.config.php'</code>
</MixedReturnStatement>
</file>
<file src="src/OptionsListener.php">
<ArgumentTypeCoercion occurrences="1">
<code>$response</code>
</ArgumentTypeCoercion>
<LessSpecificReturnStatement occurrences="1">
<code>$response</code>
</LessSpecificReturnStatement>
<MixedArgument occurrences="3">
<code>$config</code>
<code>$config['http_methods']</code>
<code>$controller</code>
</MixedArgument>
<MixedAssignment occurrences="2">
<code>$config</code>
<code>$controller</code>
</MixedAssignment>
<MoreSpecificReturnType occurrences="1">
<code>Response</code>
</MoreSpecificReturnType>
<TooManyArguments occurrences="1">
<code>setStatusCode</code>
</TooManyArguments>
</file>
<file src="src/ParameterMatcher.php">
<MixedArgument occurrences="2">
<code>$method</code>
<code>$object</code>
</MixedArgument>
<MixedArgumentTypeCoercion occurrences="1">
<code>$pn</code>
</MixedArgumentTypeCoercion>
<MixedAssignment occurrences="6">
<code>$dispatchParams[]</code>
<code>$dispatchParams[]</code>
<code>$method</code>
<code>$normalParams[str_replace(['-', '_'], '', strtolower($pn))]</code>
<code>$object</code>
<code>$pv</code>
</MixedAssignment>
</file>
<file src="src/RpcController.php">
<MixedArgument occurrences="2">
<code>$action</code>
<code>$routeParameters ?: []</code>
</MixedArgument>
<MixedAssignment occurrences="4">
<code>$action</code>
<code>$contentNegotiationParams</code>
<code>$result</code>
<code>$routeParameters</code>
</MixedAssignment>
<MixedMethodCall occurrences="1">
<code>getRouteParams</code>
</MixedMethodCall>
<PossiblyNullArgument occurrences="1">
<code>$callable</code>
</PossiblyNullArgument>
<PossiblyNullReference occurrences="2">
<code>getParam</code>
<code>getParams</code>
</PossiblyNullReference>
<RedundantCondition occurrences="1">
<code>is_array($this->wrappedCallable) && is_callable($this->wrappedCallable)</code>
</RedundantCondition>
</file>
<file src="test/Factory/OptionsListenerFactoryTest.php">
<MixedAssignment occurrences="1">
<code>$actual</code>
</MixedAssignment>
</file>
<file src="test/Factory/RpcControllerFactoryTest.php">
<MixedArrayAccess occurrences="2">
<code>$wrappedCallable[0]</code>
<code>$wrappedCallable[1]</code>
</MixedArrayAccess>
<MixedAssignment occurrences="2">
<code>$actual</code>
<code>$wrappedCallable</code>
</MixedAssignment>
<MixedInferredReturnType occurrences="1">
<code>class-string</code>
</MixedInferredReturnType>
<MixedReturnStatement occurrences="1">
<code>LegacyRouteMatch::class</code>
</MixedReturnStatement>
<UndefinedClass occurrences="4">
<code>Foo</code>
<code>Foo</code>
<code>LegacyRouteMatch</code>
<code>\ZfTest\Rpc\Factory\TestAsset\Foo</code>
</UndefinedClass>
</file>
</files>