mirror of
https://github.com/friendica/friendica
synced 2025-04-28 13:04:23 +02:00
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:
parent
f62c28008a
commit
44a9ec9b17
8 changed files with 89 additions and 93 deletions
|
@ -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));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue