diff options
| author | 2023-10-30 20:47:27 +0100 | |
|---|---|---|
| committer | 2023-10-30 20:47:27 +0100 | |
| commit | 06d00995049db9c7b915f67cfd4a5708aace458f (patch) | |
| tree | 0176ca9761b34d72ffd597bd96da3c3ae4912d86 /app/Models/Themes.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 'app/Models/Themes.php')
| -rw-r--r-- | app/Models/Themes.php | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/app/Models/Themes.php b/app/Models/Themes.php index 24539855b..ab99ea63c 100644 --- a/app/Models/Themes.php +++ b/app/Models/Themes.php @@ -1,12 +1,10 @@ <?php class FreshRSS_Themes extends Minz_Model { - /** @var string */ - private static $themesUrl = '/themes/'; - /** @var string */ - private static $defaultIconsUrl = '/themes/icons/'; - /** @var string */ - public static $defaultTheme = 'Origine'; + + private static string $themesUrl = '/themes/'; + private static string $defaultIconsUrl = '/themes/icons/'; + public static string $defaultTheme = 'Origine'; /** @return array<string> */ public static function getList(): array { @@ -51,10 +49,9 @@ class FreshRSS_Themes extends Minz_Model { return false; } - /** @var string */ - private static $themeIconsUrl; + private static string $themeIconsUrl; /** @var array<string,int> */ - private static $themeIcons; + private static array $themeIcons; /** * @return false|array{'id':string,'name':string,'author':string,'description':string,'version':float|string,'files':array<string>,'theme-color'?:string|array{'dark'?:string,'light'?:string,'default'?:string}} |
