Fix ParamNameMismatch occurences

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2021-06-10 08:01:27 +02:00
parent ba6f7fd55d
commit b657967cac
7 changed files with 15 additions and 12 deletions

View File

@@ -75,9 +75,9 @@ class StackMapper extends DeckMapper implements IPermissionMapper {
return ($row['owner'] === $userId);
}
public function findBoardId($stackId): ?int {
public function findBoardId($id): ?int {
try {
$entity = $this->find($stackId);
$entity = $this->find($id);
return $entity->getBoardId();
} catch (DoesNotExistException $e) {
} catch (MultipleObjectsReturnedException $e) {