diff options
| author | 2023-10-30 20:47:27 +0100 | |
|---|---|---|
| committer | 2023-10-30 20:47:27 +0100 | |
| commit | 06d00995049db9c7b915f67cfd4a5708aace458f (patch) | |
| tree | 0176ca9761b34d72ffd597bd96da3c3ae4912d86 /lib/Minz/Translate.php | |
| parent | 4a02352ccc1b313ce967415c6ac10a32aba1893a (diff) | |
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
Diffstat (limited to 'lib/Minz/Translate.php')
| -rw-r--r-- | lib/Minz/Translate.php | 9 |
1 files changed, 4 insertions, 5 deletions
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<string> */ - 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<string,array<string>> */ - private static $lang_files = array(); + private static array $lang_files = []; /** * $translates is a cache for i18n translation. * @var array<string,mixed> */ - private static $translates = array(); + private static array $translates = []; /** * Init the translation object. |
