forked from laminas-api-tools/api-tools-asset-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
psalm-baseline.xml
184 lines (184 loc) · 6.48 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
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="4.7.3@38c452ae584467e939d55377aaf83b5a26f19dd1">
<file src="src/AssetInstaller.php">
<DeprecatedMethod occurrences="1">
<code>package</code>
</DeprecatedMethod>
<MixedArgument occurrences="3">
<code>$path</code>
<code>$sourceFile</code>
<code>$sourceFile</code>
</MixedArgument>
<MixedArrayAccess occurrences="2">
<code>$packageConfig['asset_manager']['resolver_configs']['paths']</code>
<code>$packageConfig['asset_manager']['resolver_configs']['paths']</code>
</MixedArrayAccess>
<MixedAssignment occurrences="4">
<code>$file</code>
<code>$path</code>
<code>$paths</code>
<code>$sourceFile</code>
</MixedAssignment>
<MixedMethodCall occurrences="2">
<code>getRealPath</code>
<code>isDir</code>
</MixedMethodCall>
<RedundantConditionGivenDocblockType occurrences="1">
<code>$package instanceof PackageInterface</code>
</RedundantConditionGivenDocblockType>
</file>
<file src="src/AssetUninstaller.php">
<DeprecatedMethod occurrences="1">
<code>package</code>
</DeprecatedMethod>
<MixedArgument occurrences="2">
<code>$file</code>
<code>$path</code>
</MixedArgument>
<MixedArrayAccess occurrences="2">
<code>$packageConfig['asset_manager']['resolver_configs']['paths']</code>
<code>$packageConfig['asset_manager']['resolver_configs']['paths']</code>
</MixedArrayAccess>
<MixedAssignment occurrences="3">
<code>$file</code>
<code>$path</code>
<code>$paths</code>
</MixedAssignment>
<PropertyNotSetInConstructor occurrences="1">
<code>$gitignore</code>
</PropertyNotSetInConstructor>
<RedundantConditionGivenDocblockType occurrences="1">
<code>$package instanceof PackageInterface</code>
</RedundantConditionGivenDocblockType>
</file>
<file src="src/Plugin.php">
<MissingConstructor occurrences="2">
<code>$composer</code>
<code>$io</code>
</MissingConstructor>
</file>
<file src="src/UnparseableTokensTrait.php">
<UnusedVariable occurrences="1">
<code>$index</code>
</UnusedVariable>
</file>
<file src="test/AssetInstallerTest.php">
<ImplicitToStringCast occurrences="5">
<code>Argument::any()</code>
<code>Argument::any()</code>
<code>Argument::any()</code>
<code>Argument::any()</code>
<code>Argument::containingString('Unable to check for asset configuration in')</code>
</ImplicitToStringCast>
<MixedArgument occurrences="10">
<code>$packageEvent->reveal()</code>
<code>$packageEvent->reveal()</code>
<code>$this->package->reveal()</code>
<code>$this->package->reveal()</code>
<code>$this->package->reveal()</code>
<code>$this->package->reveal()</code>
<code>$this->package->reveal()</code>
<code>$this->package->reveal()</code>
<code>$this->package->reveal()</code>
<code>$this->package->reveal()</code>
</MixedArgument>
<PossiblyNullReference occurrences="5">
<code>shouldBeCalled</code>
<code>shouldNotBeCalled</code>
<code>shouldNotBeCalled</code>
<code>shouldNotBeCalled</code>
<code>shouldNotBeCalled</code>
</PossiblyNullReference>
<PossiblyUndefinedMethod occurrences="10">
<code>reveal</code>
<code>reveal</code>
<code>reveal</code>
<code>reveal</code>
<code>reveal</code>
<code>reveal</code>
<code>reveal</code>
<code>reveal</code>
<code>reveal</code>
<code>reveal</code>
</PossiblyUndefinedMethod>
</file>
<file src="test/AssetUninstallerTest.php">
<ImplicitToStringCast occurrences="1">
<code>Argument::containingString('Unable to check for asset configuration in')</code>
</ImplicitToStringCast>
<InvalidPropertyAssignmentValue occurrences="1"/>
<MixedArgument occurrences="8">
<code>$packageEvent->reveal()</code>
<code>$this->package->reveal()</code>
<code>$this->package->reveal()</code>
<code>$this->package->reveal()</code>
<code>$this->package->reveal()</code>
<code>$this->package->reveal()</code>
<code>$this->package->reveal()</code>
<code>$this->package->reveal()</code>
</MixedArgument>
<PossiblyNullReference occurrences="1">
<code>shouldBeCalled</code>
</PossiblyNullReference>
<PossiblyUndefinedMethod occurrences="8">
<code>reveal</code>
<code>reveal</code>
<code>reveal</code>
<code>reveal</code>
<code>reveal</code>
<code>reveal</code>
<code>reveal</code>
<code>reveal</code>
</PossiblyUndefinedMethod>
<TooManyArguments occurrences="4">
<code>vfsStream::url('project/', $asset)</code>
<code>vfsStream::url('project/', $asset)</code>
<code>vfsStream::url('project/', $asset)</code>
<code>vfsStream::url('project/', $asset)</code>
</TooManyArguments>
</file>
<file src="test/DeprecatedAssertionsTrait.php">
<MixedArgument occurrences="1">
<code>$value</code>
</MixedArgument>
<MixedAssignment occurrences="1">
<code>$value</code>
</MixedAssignment>
</file>
<file src="test/PluginTest.php">
<MixedArgument occurrences="8">
<code>$this->composer->reveal()</code>
<code>$this->composer->reveal()</code>
<code>$this->composer->reveal()</code>
<code>$this->composer->reveal()</code>
<code>$this->io->reveal()</code>
<code>$this->io->reveal()</code>
<code>$this->io->reveal()</code>
<code>$this->io->reveal()</code>
</MixedArgument>
<MixedArrayAssignment occurrences="2">
<code>$spy->operations[]</code>
<code>$spy->operations[]</code>
</MixedArrayAssignment>
<PossiblyUndefinedMethod occurrences="8">
<code>reveal</code>
<code>reveal</code>
<code>reveal</code>
<code>reveal</code>
<code>reveal</code>
<code>reveal</code>
<code>reveal</code>
<code>reveal</code>
</PossiblyUndefinedMethod>
</file>
<file src="test/TestAsset/no-asset-manager-configs/clone.config.php">
<InvalidScope occurrences="1">
<code>$this</code>
</InvalidScope>
</file>
<file src="test/TestAsset/no-asset-manager-configs/new.config.php">
<UndefinedClass occurrences="1">
<code>\Some\Namespaced\Item</code>
</UndefinedClass>
</file>
</files>