Skip to content

Commit 8953f44

Browse files
Merge pull request #50035 from nextcloud/fix/http/jsonresponse-data-type
fix(HTTP): Adjust JSONResponse data type
2 parents c8568c7 + 3624923 commit 8953f44

2 files changed

Lines changed: 1 addition & 6 deletions

File tree

build/psalm-baseline.xml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -878,11 +878,6 @@
878878
<code><![CDATA[$cacheData]]></code>
879879
</MoreSpecificImplementedParamType>
880880
</file>
881-
<file src="apps/files_sharing/lib/Middleware/SharingCheckMiddleware.php">
882-
<InvalidArgument>
883-
<code><![CDATA[$exception->getMessage()]]></code>
884-
</InvalidArgument>
885-
</file>
886881
<file src="apps/files_sharing/lib/MountProvider.php">
887882
<RedundantFunctionCall>
888883
<code><![CDATA[array_values]]></code>

lib/public/AppFramework/Http/JSONResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* A renderer for JSON calls
1414
* @since 6.0.0
1515
* @template S of int
16-
* @template-covariant T of array|object|\stdClass|\JsonSerializable
16+
* @template-covariant T of null|string|int|float|bool|array|\stdClass|\JsonSerializable
1717
* @template H of array<string, mixed>
1818
* @template-extends Response<int, array<string, mixed>>
1919
*/

0 commit comments

Comments
 (0)