From 925465763a5d44fb029c83c270db71a35a3f60e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Sat, 13 Jun 2020 13:10:51 +0200 Subject: [PATCH] Use integer type hints for controller MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- lib/Controller/CommentsApiController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Controller/CommentsApiController.php b/lib/Controller/CommentsApiController.php index 3fc410d75..ca03bcacc 100644 --- a/lib/Controller/CommentsApiController.php +++ b/lib/Controller/CommentsApiController.php @@ -55,7 +55,7 @@ class CommentsApiController extends OCSController { * @NoAdminRequired * @throws StatusException */ - public function create(string $cardId, string $message, string $parentId = '0'): DataResponse { + public function create(int $cardId, string $message, int $parentId = 0): DataResponse { return $this->commentService->create($cardId, $message, $parentId); } @@ -63,7 +63,7 @@ class CommentsApiController extends OCSController { * @NoAdminRequired * @throws StatusException */ - public function update(string $cardId, string $commentId, string $message): DataResponse { + public function update(int $cardId, int $commentId, string $message): DataResponse { return $this->commentService->update($cardId, $commentId, $message); } @@ -71,7 +71,7 @@ class CommentsApiController extends OCSController { * @NoAdminRequired * @throws StatusException */ - public function delete(string $cardId, string $commentId): DataResponse { + public function delete(int $cardId, int $commentId): DataResponse { return $this->commentService->delete($cardId, $commentId); } }