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 --- app/Models/Themes.php | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'app/Models/Themes.php') 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 @@ */ 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 */ - private static $themeIcons; + private static array $themeIcons; /** * @return false|array{'id':string,'name':string,'author':string,'description':string,'version':float|string,'files':array,'theme-color'?:string|array{'dark'?:string,'light'?:string,'default'?:string}} -- cgit v1.2.3