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/Translate.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'lib/Minz/Translate.php') diff --git a/lib/Minz/Translate.php b/lib/Minz/Translate.php index ed9eca07c..1bb2438d1 100644 --- a/lib/Minz/Translate.php +++ b/lib/Minz/Translate.php @@ -13,25 +13,24 @@ class Minz_Translate { * $path_list is the list of registered base path to search translations. * @var array */ - private static $path_list = array(); + private static array $path_list = []; /** * $lang_name is the name of the current language to use. - * @var string */ - private static $lang_name; + private static string $lang_name; /** * $lang_files is a list of registered i18n files. * @var array> */ - private static $lang_files = array(); + private static array $lang_files = []; /** * $translates is a cache for i18n translation. * @var array */ - private static $translates = array(); + private static array $translates = []; /** * Init the translation object. -- cgit v1.2.3