From 06d00995049db9c7b915f67cfd4a5708aace458f Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Mon, 30 Oct 2023 20:47:27 +0100 Subject: Require PHP 7.4+ (#5720) * Require PHP 7.4+ https://github.com/FreshRSS/FreshRSS/discussions/5474 * Update Docker oldest Alpine 3.13 with PHP 7.4.26 * Add missing packets to Docker oldest * Update to typed properties https://php.net/migration74.new-features#migration74.new-features.core.typed-properties * More types --- lib/Minz/Request.php | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'lib/Minz/Request.php') diff --git a/lib/Minz/Request.php b/lib/Minz/Request.php index c5adb02e1..af2ba1243 100644 --- a/lib/Minz/Request.php +++ b/lib/Minz/Request.php @@ -8,20 +8,17 @@ * Request représente la requête http */ class Minz_Request { - /** @var string */ - private static $controller_name = ''; - /** @var string */ - private static $action_name = ''; + + private static string $controller_name = ''; + private static string $action_name = ''; /** @var array */ - private static $params = array(); + private static array $params = []; - /** @var string */ - private static $default_controller_name = 'index'; - /** @var string */ - private static $default_action_name = 'index'; + private static string $default_controller_name = 'index'; + private static string $default_action_name = 'index'; /** @var array{'c'?:string,'a'?:string,'params'?:array} */ - private static $originalRequest = []; + private static array $originalRequest = []; /** * Getteurs -- cgit v1.2.3