Skip to content

Commit c4c6742

Browse files
Merge pull request #50056 from nextcloud/backport/50035/stable28
[stable28] fix(HTTP): Adjust JSONResponse data type
2 parents e9b2832 + e99cce6 commit c4c6742

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

build/psalm-baseline.xml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1165,11 +1165,6 @@
11651165
<code><![CDATA[IEventListener]]></code>
11661166
</MissingTemplateParam>
11671167
</file>
1168-
<file src="apps/files_sharing/lib/Middleware/SharingCheckMiddleware.php">
1169-
<InvalidArgument>
1170-
<code><![CDATA[$exception->getMessage()]]></code>
1171-
</InvalidArgument>
1172-
</file>
11731168
<file src="apps/files_sharing/lib/MountProvider.php">
11741169
<RedundantFunctionCall>
11751170
<code><![CDATA[array_values]]></code>

lib/public/AppFramework/Http/JSONResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
* A renderer for JSON calls
3535
* @since 6.0.0
3636
* @template S of int
37-
* @template-covariant T of array|object|\stdClass|\JsonSerializable
37+
* @template-covariant T of null|string|int|float|bool|array|\stdClass|\JsonSerializable
3838
* @template H of array<string, mixed>
3939
* @template-extends Response<int, array<string, mixed>>
4040
*/

0 commit comments

Comments
 (0)