aboutsummaryrefslogtreecommitdiff
path: root/app/FreshRSS.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2023-05-15 19:26:48 +0200
committerGravatar GitHub <noreply@github.com> 2023-05-15 19:26:48 +0200
commit2038d50110468d95ff978ba2e8f997175f25ff3b (patch)
treea9bc4bc364fe0c9b452702f3324a2091229e5fce /app/FreshRSS.php
parentc8d2ead7635e58a5c78d95a9b9a1a74e99a1bcef (diff)
PHPStan Level 7 for Minz_Request, FreshRSS_Feed, Minz_Error (#5400)
* PHPStan Level 7 for Minz_Request * PHPStan Level 7 for FreshRSS_Feed * PHPStan Level 7 for Minz_Error
Diffstat (limited to 'app/FreshRSS.php')
-rw-r--r--app/FreshRSS.php9
1 files changed, 3 insertions, 6 deletions
diff --git a/app/FreshRSS.php b/app/FreshRSS.php
index 12390b626..6e39fe97e 100644
--- a/app/FreshRSS.php
+++ b/app/FreshRSS.php
@@ -28,7 +28,7 @@ class FreshRSS extends Minz_FrontController {
FreshRSS_Context::initSystem();
if (FreshRSS_Context::$system_conf == null) {
$message = 'Error during context system init!';
- Minz_Error::error(500, [$message], false);
+ Minz_Error::error(500, $message, false);
die($message);
}
@@ -51,7 +51,7 @@ class FreshRSS extends Minz_FrontController {
}
if (FreshRSS_Context::$user_conf == null) {
$message = 'Error during context user init!';
- Minz_Error::error(500, [$message], false);
+ Minz_Error::error(500, $message, false);
die($message);
}
@@ -84,10 +84,7 @@ class FreshRSS extends Minz_FrontController {
)) {
// Token-based protection against XSRF attacks, except for the login or self-create user forms
self::initI18n();
- Minz_Error::error(403, array('error' => array(
- _t('feedback.access.denied'),
- ' [CSRF]'
- )));
+ Minz_Error::error(403, ['error' => [_t('feedback.access.denied'), ' [CSRF]']]);
}
}
}