Skip to content

Commit 98f0936

Browse files
CopilotR0Wi
andcommitted
Fix PSALM baseline: remove unused entries and add PossiblyUnusedProperty for timeout
The previous baseline entries for MixedArgument, MixedAssignment, and MixedPropertyFetch were unused because isset() guards the property access properly. Added the correct baseline entry for PossiblyUnusedProperty on GlobalSettings::$timeout instead. Co-authored-by: R0Wi <[email protected]>
1 parent f8b16fa commit 98f0936

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

tests/psalm-baseline.xml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -72,22 +72,18 @@
7272
<code><![CDATA[__construct]]></code>
7373
</PossiblyUnusedMethod>
7474
</file>
75+
<file src="lib/Model/GlobalSettings.php">
76+
<PossiblyUnusedProperty>
77+
<code><![CDATA[$timeout]]></code>
78+
</PossiblyUnusedProperty>
79+
</file>
7580
<file src="lib/OcrProcessors/Remote/Client/ApiClient.php">
7681
<InvalidReturnStatement>
7782
<code><![CDATA[ObjectSerializer::deserialize(json_decode($response->getBody(), false, 512, JSON_THROW_ON_ERROR), $class)]]></code>
7883
</InvalidReturnStatement>
7984
<InvalidReturnType>
8085
<code><![CDATA[OcrResult|ErrorResult]]></code>
8186
</InvalidReturnType>
82-
<MixedArgument>
83-
<code><![CDATA[$settings->timeout]]></code>
84-
</MixedArgument>
85-
<MixedAssignment>
86-
<code><![CDATA[$timeoutInt]]></code>
87-
</MixedAssignment>
88-
<MixedPropertyFetch>
89-
<code><![CDATA[$settings->timeout]]></code>
90-
</MixedPropertyFetch>
9187
<NullableReturnStatement>
9288
<code><![CDATA[ObjectSerializer::deserialize(json_decode($response->getBody(), false, 512, JSON_THROW_ON_ERROR), $class)]]></code>
9389
</NullableReturnStatement>

0 commit comments

Comments
 (0)