Use numeric typehint instead of int to allow for numeric strings to be passed to find methods. Fixes the psalm check.

Signed-off-by: Raul <raul@nextcloud.com>
This commit is contained in:
Raul
2022-04-13 12:39:39 +02:00
parent 53e3a7ae7f
commit 815b8597d1
4 changed files with 18 additions and 21 deletions

View File

@@ -36,7 +36,7 @@ class LabelMapper extends DeckMapper implements IPermissionMapper {
}
/**
* @param int $boardId
* @param numeric $boardId
* @param int|null $limit
* @param int|null $offset
* @return Label[]
@@ -65,7 +65,7 @@ class LabelMapper extends DeckMapper implements IPermissionMapper {
}
/**
* @param int $cardId
* @param numeric $cardId
* @param int|null $limit
* @param int|null $offset
* @return Label[]
@@ -85,7 +85,7 @@ class LabelMapper extends DeckMapper implements IPermissionMapper {
}
/**
* @param int $boardId
* @param numeric $boardId
* @param int|null $limit
* @param int|null $offset
* @return Label[]
@@ -130,7 +130,7 @@ class LabelMapper extends DeckMapper implements IPermissionMapper {
}
/**
* @param int $boardId
* @param numeric $boardId
* @return array
* @throws \OCP\DB\Exception
*/
@@ -147,7 +147,7 @@ class LabelMapper extends DeckMapper implements IPermissionMapper {
}
/**
* @param int $labelId
* @param numeric $labelId
* @return void
* @throws \OCP\DB\Exception
*/
@@ -159,7 +159,7 @@ class LabelMapper extends DeckMapper implements IPermissionMapper {
}
/**
* @param int $cardId
* @param numeric $cardId
* @return void
* @throws \OCP\DB\Exception
*/
@@ -172,7 +172,7 @@ class LabelMapper extends DeckMapper implements IPermissionMapper {
/**
* @param string $userId
* @param int $labelId
* @param numeric $labelId
* @return bool
* @throws \OCP\DB\Exception
*/
@@ -188,7 +188,7 @@ class LabelMapper extends DeckMapper implements IPermissionMapper {
}
/**
* @param int $id
* @param numeric $id
* @return int|null
*/
public function findBoardId($id): ?int {