-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathpsalm-baseline.xml
87 lines (87 loc) · 3.43 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
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="5.24.0@462c80e31c34e58cc4f750c656be3927e80e550e">
<file src="src/ComponentInstaller.php">
<InvalidArgument>
<code><![CDATA[new Collection(array_keys(self::PACKAGE_TYPES))]]></code>
</InvalidArgument>
<InvalidReturnStatement>
<code><![CDATA[(new Collection(self::PACKAGE_TYPES))
->filter(fn(string $configKey) => isset($extra[$configKey]))]]></code>
</InvalidReturnStatement>
<InvalidReturnType>
<code><![CDATA[Collection<InjectorInterface::TYPE_*,non-empty-string>]]></code>
</InvalidReturnType>
</file>
<file src="src/ConfigDiscovery.php">
<InvalidReturnStatement>
<code><![CDATA[new Collection([
new ConfigOption('Do not inject', new Injector\NoopInjector()),
...$options->toArray(),
])]]></code>
</InvalidReturnStatement>
<InvalidReturnType>
<code><![CDATA[Collection<int,ConfigOption>]]></code>
</InvalidReturnType>
</file>
<file src="src/ConfigDiscovery/DevelopmentWorkConfig.php">
<PossiblyUnusedMethod>
<code><![CDATA[__construct]]></code>
</PossiblyUnusedMethod>
</file>
<file src="src/ConfigDiscovery/MezzioDevelopmentConfig.php">
<PossiblyUnusedMethod>
<code><![CDATA[__construct]]></code>
</PossiblyUnusedMethod>
</file>
<file src="src/ConfigDiscovery/MezzioDevelopmentWorkConfig.php">
<PossiblyUnusedMethod>
<code><![CDATA[__construct]]></code>
</PossiblyUnusedMethod>
</file>
<file src="src/Injector/AbstractInjector.php">
<ArgumentTypeCoercion>
<code><![CDATA[sprintf($this->isRegisteredPattern, preg_quote($dependency, '/'))]]></code>
<code><![CDATA[sprintf($this->isRegisteredPattern, preg_quote($module, '/'))]]></code>
<code><![CDATA[sprintf($this->isRegisteredPattern, preg_quote($package, '/'))]]></code>
<code><![CDATA[sprintf($this->isRegisteredPattern, preg_quote(addslashes($package), '/'))]]></code>
<code><![CDATA[sprintf($this->removalPatterns['pattern'], preg_quote($package))]]></code>
</ArgumentTypeCoercion>
<RiskyTruthyFalsyComparison>
<code><![CDATA[$firstApplicationModule = $this->findFirstEnabledApplicationModule($this->applicationModules, $config)]]></code>
</RiskyTruthyFalsyComparison>
</file>
<file src="src/Injector/DevelopmentConfigInjector.php">
<PossiblyUnusedMethod>
<code><![CDATA[__construct]]></code>
</PossiblyUnusedMethod>
</file>
<file src="src/Injector/DevelopmentWorkConfigInjector.php">
<PossiblyUnusedMethod>
<code><![CDATA[__construct]]></code>
</PossiblyUnusedMethod>
</file>
<file src="src/Injector/MezzioConfigInjector.php">
<PossiblyUnusedMethod>
<code><![CDATA[__construct]]></code>
</PossiblyUnusedMethod>
</file>
<file src="src/Injector/MezzioDevelopmentConfigInjector.php">
<PossiblyUnusedMethod>
<code><![CDATA[__construct]]></code>
</PossiblyUnusedMethod>
</file>
<file src="src/Injector/MezzioDevelopmentWorkConfigInjector.php">
<PossiblyUnusedMethod>
<code><![CDATA[__construct]]></code>
</PossiblyUnusedMethod>
</file>
<file src="test/ConfigDiscoveryTest.php">
<InvalidPropertyAssignmentValue>
<code><![CDATA[new Collection([
InjectorInterface::TYPE_CONFIG_PROVIDER,
InjectorInterface::TYPE_COMPONENT,
InjectorInterface::TYPE_MODULE,
])]]></code>
</InvalidPropertyAssignmentValue>
</file>
</files>