From 2118448133e327294ad2b69ed8736bc29879103d Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Wed, 5 Apr 2023 23:26:38 +0200 Subject: PHPStan level 6 for more files (#5264) 7 more files passing (see phpstan-next.txt) --- lib/Minz/FrontController.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'lib/Minz/FrontController.php') diff --git a/lib/Minz/FrontController.php b/lib/Minz/FrontController.php index a5f73b59f..4837f89c1 100644 --- a/lib/Minz/FrontController.php +++ b/lib/Minz/FrontController.php @@ -24,6 +24,8 @@ * It is generally invoqued by an index.php file at the root. */ class Minz_FrontController { + + /** @var Minz_Dispatcher */ protected $dispatcher; /** @@ -53,7 +55,7 @@ class Minz_FrontController { /** * Démarre l'application (lance le dispatcher et renvoie la réponse) */ - public function run() { + public function run(): void { try { $this->dispatcher->run(); } catch (Minz_Exception $e) { @@ -80,8 +82,9 @@ class Minz_FrontController { /** * Kills the programme + * @return never */ - public static function killApp($txt = '') { + public static function killApp(string $txt = '') { header('HTTP 1.1 500 Internal Server Error', true, 500); if (function_exists('errorMessageInfo')) { //If the application has defined a custom error message function @@ -90,7 +93,7 @@ class Minz_FrontController { die('### Application problem ###
' . "\n" . $txt); } - private function setReporting() { + private function setReporting(): void { $envType = getenv('FRESHRSS_ENV'); if ($envType == '') { $conf = Minz_Configuration::get('system'); -- cgit v1.2.3