Skip to content

Commit

Permalink
Pagination: Use type declarations in constructor signature
Browse files Browse the repository at this point in the history
  • Loading branch information
pH-7 committed Jun 22, 2022
1 parent a4a888d commit 808d8ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _protected/framework/Navigation/Pagination.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class Pagination
* @param string $sPageName Default 'p'
* @param array $aOptions Optional options.
*/
public function __construct($iTotalPages, $iCurrentPage, $sPageName = self::REQUEST_PARAM_NAME, array $aOptions = [])
public function __construct(int $iTotalPages, int $iCurrentPage, string $sPageName = self::REQUEST_PARAM_NAME, array $aOptions = [])
{
// Set the total number of page
$this->iTotalPages = $iTotalPages;
Expand Down

0 comments on commit 808d8ae

Please sign in to comment.