diff options
author | provokateurin <kate@provokateurin.de> | 2025-01-04 00:58:54 +0100 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2025-01-07 05:40:50 +0000 |
commit | f379188b21d1321f272abba859a031cd54136d38 (patch) | |
tree | 9e9ee7724f237b95bb0376734d060d2a3b72aa8e | |
parent | 6163b645667c1859c619e475cd0035e11f4b9532 (diff) | |
download | nextcloud-server-backport/50035/stable29.tar.gz nextcloud-server-backport/50035/stable29.zip |
fix(HTTP): Adjust JSONResponse data typebackport/50035/stable29
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 bff1ee6815f..59bf67a36d1 100644 --- a/build/psalm-baseline.xml +++ b/build/psalm-baseline.xml @@ -920,11 +920,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 f6004296323..4385e2ffd55 100644 --- a/lib/public/AppFramework/Http/JSONResponse.php +++ b/lib/public/AppFramework/Http/JSONResponse.php @@ -34,7 +34,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>> */ |