diff options
author | provokateurin <kate@provokateurin.de> | 2025-01-04 00:58:54 +0100 |
---|---|---|
committer | provokateurin <kate@provokateurin.de> | 2025-01-04 00:58:54 +0100 |
commit | 3624923af20197755d260bc3d6347c08efccc9b8 (patch) | |
tree | 970b3de3d7914e9fec536b95a859c15164816c3c | |
parent | 72e82417f2d8acb84303d59a2250c1bb98411b24 (diff) | |
download | nextcloud-server-fix/http/jsonresponse-data-type.tar.gz nextcloud-server-fix/http/jsonresponse-data-type.zip |
fix(HTTP): Adjust JSONResponse data typefix/http/jsonresponse-data-type
Signed-off-by: provokateurin <kate@provokateurin.de>
-rw-r--r-- | build/psalm-baseline.xml | 5 | ||||
-rw-r--r-- | lib/public/AppFramework/Http/JSONResponse.php | 2 |
2 files changed, 1 insertions, 6 deletions
diff --git a/build/psalm-baseline.xml b/build/psalm-baseline.xml index 93c48a30283..378429ceda3 100644 --- a/build/psalm-baseline.xml +++ b/build/psalm-baseline.xml @@ -878,11 +878,6 @@ <code><![CDATA[$cacheData]]></code> </MoreSpecificImplementedParamType> </file> - <file src="apps/files_sharing/lib/Middleware/SharingCheckMiddleware.php"> - <InvalidArgument> - <code><![CDATA[$exception->getMessage()]]></code> - </InvalidArgument> - </file> <file src="apps/files_sharing/lib/MountProvider.php"> <RedundantFunctionCall> <code><![CDATA[array_values]]></code> diff --git a/lib/public/AppFramework/Http/JSONResponse.php b/lib/public/AppFramework/Http/JSONResponse.php index afe36c4a8c3..1d2564afab0 100644 --- a/lib/public/AppFramework/Http/JSONResponse.php +++ b/lib/public/AppFramework/Http/JSONResponse.php @@ -13,7 +13,7 @@ use OCP\AppFramework\Http; * A renderer for JSON calls * @since 6.0.0 * @template S of int - * @template-covariant T of array|object|\stdClass|\JsonSerializable + * @template-covariant T of null|string|int|float|bool|array|\stdClass|\JsonSerializable * @template H of array<string, mixed> * @template-extends Response<int, array<string, mixed>> */ |