Skip to content

Commit 7177b70

Browse files
committed
Update psalm config for future defaults, refresh baseline
Signed-off-by: George Steel <[email protected]>
1 parent c85d021 commit 7177b70

File tree

2 files changed

+20
-13
lines changed

2 files changed

+20
-13
lines changed

psalm-baseline.xml

+17-13
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,39 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<files psalm-version="4.29.0@7ec5ffbd5f68ae03782d7fd33fff0c45a69f95b3">
2+
<files psalm-version="5.9.0@8b9ad1eb9e8b7d3101f949291da2b9f7767cd163">
33
<file src="src/BasicAccess.php">
4-
<DeprecatedClass occurrences="1"/>
5-
<PossiblyInvalidMethodCall occurrences="1">
4+
<DeprecatedClass>
5+
<code><![CDATA[new CallableResponseFactoryDecorator(
6+
static fn(): ResponseInterface => $responseFactory()
7+
)]]></code>
8+
</DeprecatedClass>
9+
<PossiblyInvalidMethodCall>
610
<code>createResponse</code>
711
</PossiblyInvalidMethodCall>
812
</file>
913
<file src="src/BasicAccessFactory.php">
10-
<DeprecatedTrait occurrences="1">
14+
<DeprecatedTrait>
1115
<code>Psr17ResponseFactoryTrait</code>
1216
</DeprecatedTrait>
1317
</file>
1418
<file src="src/Psr17ResponseFactoryTrait.php">
15-
<DeprecatedClass occurrences="1">
19+
<DeprecatedClass>
1620
<code>new CallableResponseFactoryDecorator($responseFactory)</code>
1721
</DeprecatedClass>
18-
<UndefinedClass occurrences="1">
22+
<UndefinedClass>
1923
<code>ResponseFactoryFactory</code>
2024
</UndefinedClass>
2125
</file>
2226
<file src="test/BasicAccessTest.php">
23-
<MixedArgumentTypeCoercion occurrences="5">
24-
<code>$this-&gt;responseFactory</code>
25-
<code>$this-&gt;responseFactory</code>
26-
<code>$this-&gt;responseFactory</code>
27-
<code>$this-&gt;responseFactory</code>
28-
<code>$this-&gt;responseFactory</code>
27+
<MixedArgumentTypeCoercion>
28+
<code><![CDATA[$this->responseFactory]]></code>
29+
<code><![CDATA[$this->responseFactory]]></code>
30+
<code><![CDATA[$this->responseFactory]]></code>
31+
<code><![CDATA[$this->responseFactory]]></code>
32+
<code><![CDATA[$this->responseFactory]]></code>
2933
</MixedArgumentTypeCoercion>
3034
</file>
3135
<file src="test/ConfigProviderTest.php">
32-
<RedundantCondition occurrences="1">
36+
<RedundantCondition>
3337
<code>assertIsArray</code>
3438
</RedundantCondition>
3539
</file>

psalm.xml

+3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
xmlns="https://getpsalm.org/schema/config"
66
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
77
errorBaseline="psalm-baseline.xml"
8+
findUnusedPsalmSuppress="true"
9+
findUnusedCode="true"
10+
findUnusedBaselineEntry="true"
811
>
912
<projectFiles>
1013
<directory name="src"/>

0 commit comments

Comments
 (0)