diff --git a/src/Content/BoundariesPager.php b/src/Content/BoundariesPager.php index dbfa4ca73..fe9504051 100644 --- a/src/Content/BoundariesPager.php +++ b/src/Content/BoundariesPager.php @@ -130,7 +130,7 @@ class BoundariesPager extends Pager return Renderer::replaceMacros($tpl, ['pager' => $data]); } - public function renderFull(int $itemCount) + public function renderFull(int $itemCount): string { throw new \BadMethodCallException(); } diff --git a/src/Content/Pager.php b/src/Content/Pager.php index 4e8a760a1..5109fd1de 100644 --- a/src/Content/Pager.php +++ b/src/Content/Pager.php @@ -199,13 +199,13 @@ class Pager * * $html = $pager->renderFull(); * - * @param integer $itemCount The total number of items including those note displayed on the page + * @param int $itemCount The total number of items including those note displayed on the page * @return string HTML string of the pager * @throws \Friendica\Network\HTTPException\InternalServerErrorException */ public function renderFull(int $itemCount): string { - $totalItemCount = max(0, intval($itemCount)); + $totalItemCount = max(0, $itemCount); $data = [];