Skip to content

Commit 2116bb8

Browse files
committed
fix: parse arguments to CardService.reorder correctly to int
Signed-off-by: Viktor Diezel <viktor.diezel@posteo.de>
1 parent 18eea35 commit 2116bb8

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/Controller/CardController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function read($cardId) {
4040
* @return array
4141
*/
4242
public function reorder($cardId, $stackId, $order) {
43-
return $this->cardService->reorder((int)$cardId, (int)$stackId, (int)$order);
43+
return $this->cardService->reorder($cardId, $stackId, $order);
4444
}
4545

4646
/**

lib/Service/CardService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ public function rename($id, $title) {
439439
* @throws \OCP\AppFramework\Db\MultipleObjectsReturnedException
440440
* @throws BadRequestException
441441
*/
442-
public function reorder($id, $stackId, $order) {
442+
public function reorder(int $id, int $stackId, int $order) {
443443
$this->cardServiceValidator->check(compact('id', 'stackId', 'order'));
444444

445445
$this->permissionService->checkPermission($this->cardMapper, $id, Acl::PERMISSION_EDIT);

0 commit comments

Comments
 (0)