aboutsummaryrefslogtreecommitdiff
path: root/app/Controllers/errorController.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Controllers/errorController.php')
-rw-r--r--app/Controllers/errorController.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/app/Controllers/errorController.php b/app/Controllers/errorController.php
index fe56b13eb..c3e832cf8 100644
--- a/app/Controllers/errorController.php
+++ b/app/Controllers/errorController.php
@@ -1,4 +1,5 @@
<?php
+declare(strict_types=1);
/**
* Controller to handle error page.
@@ -14,8 +15,9 @@ class FreshRSS_error_Controller extends FreshRSS_ActionController {
* - error_logs (default: array())
*/
public function indexAction(): void {
- $code_int = Minz_Session::param('error_code', 404);
- $error_logs = Minz_Session::param('error_logs', []);
+ $code_int = Minz_Session::paramInt('error_code') ?: 404;
+ /** @var array<string> */
+ $error_logs = Minz_Session::paramArray('error_logs');
Minz_Session::_params([
'error_code' => false,
'error_logs' => false,