From e99cce6c2e71e3170c61d57747478bc11dc1a63c Mon Sep 17 00:00:00 2001 From: provokateurin Date: Sat, 4 Jan 2025 00:58:54 +0100 Subject: fix(HTTP): Adjust JSONResponse data type Signed-off-by: provokateurin --- build/psalm-baseline.xml | 5 ----- lib/public/AppFramework/Http/JSONResponse.php | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/build/psalm-baseline.xml b/build/psalm-baseline.xml index dc011bc3b3f..41a7a2e46eb 100644 --- a/build/psalm-baseline.xml +++ b/build/psalm-baseline.xml @@ -1165,11 +1165,6 @@ - - - getMessage()]]> - - 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 * @template-extends Response> */ -- cgit v1.2.3