Skip to content

Commit

Permalink
fix: update psalm-baseline to suppress Controller errors
Browse files Browse the repository at this point in the history
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. <[email protected]>
  • Loading branch information
enjeck committed Feb 1, 2025
1 parent 7af51da commit 52124be
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/psalm-baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,9 @@
</MissingReturnType>
</file>
<file src="vendor/nextcloud/ocp/OCP/AppFramework/Controller.php">
<ArgumentTypeCoercion>
<code><![CDATA[$data->getData()]]></code>
</ArgumentTypeCoercion>
<MissingClosureParamType>
<code><![CDATA[$data]]></code>
</MissingClosureParamType>
Expand Down

0 comments on commit 52124be

Please sign in to comment.