diff --git a/lib/Db/PageMapper.php b/lib/Db/PageMapper.php index e46ec6cf9..eaca7f1ec 100644 --- a/lib/Db/PageMapper.php +++ b/lib/Db/PageMapper.php @@ -14,6 +14,9 @@ public function __construct(IDBConnection $db) { parent::__construct($db, $this->table, Page::class); } + /** + * @return int[] + */ public function getPageIdsForContext(int $contextId): array { $qb = $this->db->getQueryBuilder(); @@ -25,7 +28,7 @@ public function getPageIdsForContext(int $contextId): array { $pageIds = []; while ($row = $result->fetch() ) { - $pageIds[] = $row['id']; + $pageIds[] = (int)$row['id']; } return $pageIds; }