aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorprovokateurin <kate@provokateurin.de>2025-01-04 00:58:54 +0100
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2025-01-07 05:41:45 +0000
commit8b322ff12cc846bd732af1d0fe1c50492f1bdbe2 (patch)
treeb1344601db7ba88cce6c014438b465f6828a50ba
parentef5dc1e2eb8b86bc257088776497051ba622246e (diff)
downloadnextcloud-server-backport/50035/stable30.tar.gz
nextcloud-server-backport/50035/stable30.zip
fix(HTTP): Adjust JSONResponse data typebackport/50035/stable30
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 476759a387b..a8839fd25ff 100644
--- a/build/psalm-baseline.xml
+++ b/build/psalm-baseline.xml
@@ -902,11 +902,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 7551d264e73..2ad18551ef8 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>>
*/