Rewrite:
- avoid having array|string for $table to have a "string" type-hint for $table - you now have to do it for yourself by giving 'schema.table' as parameter
This commit is contained in:
@@ -130,7 +130,7 @@ class BoundariesPager extends Pager
|
||||
return Renderer::replaceMacros($tpl, ['pager' => $data]);
|
||||
}
|
||||
|
||||
public function renderFull($itemCount)
|
||||
public function renderFull(int $itemCount)
|
||||
{
|
||||
throw new \BadMethodCallException();
|
||||
}
|
||||
|
||||
@@ -160,7 +160,7 @@ class Pager
|
||||
* @return string HTML string of the pager
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function renderMinimal(int $itemCount)
|
||||
public function renderMinimal(int $itemCount): string
|
||||
{
|
||||
$displayedItemCount = max(0, intval($itemCount));
|
||||
|
||||
@@ -203,7 +203,7 @@ class Pager
|
||||
* @return string HTML string of the pager
|
||||
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
|
||||
*/
|
||||
public function renderFull($itemCount)
|
||||
public function renderFull(int $itemCount): string
|
||||
{
|
||||
$totalItemCount = max(0, intval($itemCount));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user