Skip to content

Commit 9556763

Browse files
committed
fix: update psalm-baseline to suppress Controller errors
This fixes the error message: ERROR: ArgumentTypeCoercion - vendor/nextcloud/ocp/OCP/AppFramework/Controller.php:56:7 - Argument 1 of OCP\AppFramework\Http\JSONResponse::__construct expects JsonSerializable|array<array-key, mixed>|null|scalar|stdClass, but parent type array<array-key, mixed>|null|object|scalar provided (see https://psalm.dev/193) Signed-off-by: Cleopatra Enjeck M. <patrathewhiz@gmail.com>
1 parent 5464ede commit 9556763

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/psalm-baseline.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,9 @@
253253
</MissingReturnType>
254254
</file>
255255
<file src="vendor/nextcloud/ocp/OCP/AppFramework/Controller.php">
256+
<ArgumentTypeCoercion>
257+
<code><![CDATA[$data->getData()]]></code>
258+
</ArgumentTypeCoercion>
256259
<MissingClosureParamType>
257260
<code><![CDATA[$data]]></code>
258261
</MissingClosureParamType>

0 commit comments

Comments
 (0)