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/ViewJavascript.php | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'app/Models/ViewJavascript.php') diff --git a/app/Models/ViewJavascript.php b/app/Models/ViewJavascript.php index 62d0339eb..157ebe4ae 100644 --- a/app/Models/ViewJavascript.php +++ b/app/Models/ViewJavascript.php @@ -5,14 +5,12 @@ declare(strict_types=1); final class FreshRSS_ViewJavascript extends FreshRSS_View { /** @var array */ - public $categories; + public array $categories; /** @var array */ - public $feeds; + public array $feeds; /** @var array */ - public $tags; + public array $tags; - /** @var string */ - public $nonce; - /** @var string */ - public $salt1; + public string $nonce; + public string $salt1; } -- cgit v1.2.3