From e53938038e6cdcef1f42f5b01abe37bcab87f553 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Tue, 9 Jan 2024 18:01:37 +0100 Subject: [PATCH] fix: Psalm and CI MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- lib/Service/BoardService.php | 2 +- tests/integration/base-query-count.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 tests/integration/base-query-count.txt diff --git a/lib/Service/BoardService.php b/lib/Service/BoardService.php index 2c3bca46b..f1cf2b55f 100644 --- a/lib/Service/BoardService.php +++ b/lib/Service/BoardService.php @@ -192,7 +192,7 @@ class BoardService { $this->permissionService->checkPermission($this->boardMapper, $boardId, Acl::PERMISSION_READ); /** @var Board $board */ - $board = $this->boardMapper->find($boardId, true, true, $allowDeleted); + $board = $this->boardMapper->find((int)$boardId, true, true, $allowDeleted); $this->boardMapper->mapOwner($board); if ($board->getAcl() !== null) { foreach ($board->getAcl() as $acl) { diff --git a/tests/integration/base-query-count.txt b/tests/integration/base-query-count.txt new file mode 100644 index 000000000..4fe36e923 --- /dev/null +++ b/tests/integration/base-query-count.txt @@ -0,0 +1 @@ +68024