aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorprovokateurin <kate@provokateurin.de>2025-01-04 00:58:54 +0100
committerprovokateurin <kate@provokateurin.de>2025-01-07 08:11:42 +0100
commite99cce6c2e71e3170c61d57747478bc11dc1a63c (patch)
tree2c6e8e36695d67c131c0e6e1236af1bbf14732d8
parente9b2832a0a4e56f97d45707f6c6b5e20d982f8ac (diff)
downloadnextcloud-server-e99cce6c2e71e3170c61d57747478bc11dc1a63c.tar.gz
nextcloud-server-e99cce6c2e71e3170c61d57747478bc11dc1a63c.zip
fix(HTTP): Adjust JSONResponse data type
Signed-off-by: provokateurin <kate@provokateurin.de>
-rw-r--r--build/psalm-baseline.xml5
-rw-r--r--lib/public/AppFramework/Http/JSONResponse.php2
2 files changed, 1 insertions, 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 @@
<code><![CDATA[IEventListener]]></code>
</MissingTemplateParam>
</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>>
*/