From 2038d50110468d95ff978ba2e8f997175f25ff3b Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Mon, 15 May 2023 19:26:48 +0200 Subject: 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 --- app/FreshRSS.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'app/FreshRSS.php') 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]']]); } } } -- cgit v1.2.3