]> source.dussan.org Git - nextcloud-server.git/commitdiff
chore(dashboard): Add limit range to items v1 API 42056/head
authorjld3103 <jld3103yt@gmail.com>
Wed, 6 Dec 2023 13:52:13 +0000 (14:52 +0100)
committerjld3103 <jld3103yt@gmail.com>
Wed, 6 Dec 2023 13:52:17 +0000 (14:52 +0100)
Signed-off-by: jld3103 <jld3103yt@gmail.com>
apps/dashboard/lib/Controller/DashboardApiController.php

index c95979e667dcde392bab49bb6b0c07b3af9d7588..a28e1140fc237f506e1190fd6deab92a3f40791f 100644 (file)
@@ -101,6 +101,7 @@ class DashboardApiController extends OCSController {
         *
         * @param array<string, string> $sinceIds Array indexed by widget Ids, contains date/id from which we want the new items
         * @param int $limit Limit number of result items per widget
+        * @psalm-param int<1, 30> $limit
         * @param string[] $widgets Limit results to specific widgets
         * @return DataResponse<Http::STATUS_OK, array<string, DashboardWidgetItem[]>, array{}>
         *