From 83bc2c5cf2a01d785d0d699457b8130057d1ff47 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 8 Mar 2023 07:33:03 +0100 Subject: [PATCH] fix(API): Fix board API details parameter to work as expected Signed-off-by: Joas Schilling --- lib/Controller/BoardApiController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/Controller/BoardApiController.php b/lib/Controller/BoardApiController.php index a128b5c64..32a9a971c 100644 --- a/lib/Controller/BoardApiController.php +++ b/lib/Controller/BoardApiController.php @@ -60,9 +60,11 @@ class BoardApiController extends ApiController { * @NoCSRFRequired * * Return all of the boards that the current user has access to. + * + * @param bool $details * @throws StatusException */ - public function index($details = null) { + public function index(bool $details = false) { $modified = $this->request->getHeader('If-Modified-Since'); if ($modified === null || $modified === '') { $boards = $this->boardService->findAll(0, $details === true);