aboutsummaryrefslogtreecommitdiff
path: root/lib/Minz/Paginator.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2021-12-31 17:00:51 +0100
committerGravatar GitHub <noreply@github.com> 2021-12-31 17:00:51 +0100
commit77e9877316fcfacb26799afdf32d94c8411da80e (patch)
tree7fd9c85bf4854054be6536c14d120bc8b790debe /lib/Minz/Paginator.php
parent09c84fb3bc44bf8e45619c27acc15b967aea14ce (diff)
Add PHPStan (#4021)
* Add PHPStan #fix https://github.com/FreshRSS/FreshRSS/issues/4016 https://phpstan.org/ ```sh composer run-script phpstan ``` * More fixes * Fix global variables * Add .phtml * Fix merge https://github.com/FreshRSS/FreshRSS/pull/4090 * Fix more warnings * Fix view errors and enable in CI * ReturnTypeWillChange * Dynamic view type * Fix Minz static/self bug
Diffstat (limited to 'lib/Minz/Paginator.php')
-rw-r--r--lib/Minz/Paginator.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Minz/Paginator.php b/lib/Minz/Paginator.php
index 7f5f0db8b..72eaafec1 100644
--- a/lib/Minz/Paginator.php
+++ b/lib/Minz/Paginator.php
@@ -47,7 +47,7 @@ class Minz_Paginator {
/**
* Permet d'afficher la pagination
* @param $view nom du fichier de vue situé dans /app/views/helpers/
- * @param $getteur variable de type $_GET[] permettant de retrouver la page
+ * @param int $getteur variable de type $_GET[] permettant de retrouver la page
*/
public function render ($view, $getteur) {
$view = APP_PATH . '/views/helpers/'.$view;
@@ -176,7 +176,7 @@ class Minz_Paginator {
}
public function _currentPage ($page) {
if($page < 1 || ($page > $this->nbPage && $this->nbPage > 0)) {
- throw new CurrentPagePaginationException ($page);
+ throw new Minz_CurrentPagePaginationException($page);
}
$this->currentPage = $page;