aboutsummaryrefslogtreecommitdiff
path: root/lib/Minz/FrontController.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2023-04-05 23:26:38 +0200
committerGravatar GitHub <noreply@github.com> 2023-04-05 23:26:38 +0200
commit2118448133e327294ad2b69ed8736bc29879103d (patch)
tree00c003056dedbd8e3554801d6493a25641a260a5 /lib/Minz/FrontController.php
parent4f078958b5603900592e14f9f3189bbebfc81bab (diff)
PHPStan level 6 for more files (#5264)
7 more files passing (see phpstan-next.txt)
Diffstat (limited to 'lib/Minz/FrontController.php')
-rw-r--r--lib/Minz/FrontController.php9
1 files changed, 6 insertions, 3 deletions
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 ###<br />' . "\n" . $txt);
}
- private function setReporting() {
+ private function setReporting(): void {
$envType = getenv('FRESHRSS_ENV');
if ($envType == '') {
$conf = Minz_Configuration::get('system');