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/ReadingMode.php | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) (limited to 'app/Models/ReadingMode.php') diff --git a/app/Models/ReadingMode.php b/app/Models/ReadingMode.php index c0fa95b31..51ff26fd5 100644 --- a/app/Models/ReadingMode.php +++ b/app/Models/ReadingMode.php @@ -5,24 +5,12 @@ */ class FreshRSS_ReadingMode { - /** - * @var string - */ - protected $id; - /** - * @var string - */ - protected $name; - /** - * @var string - */ - protected $title; + protected string $id; + protected string $name; + protected string $title; /** @var array{'c':string,'a':string,'params':array} */ - protected $urlParams; - /** - * @var bool - */ - protected $isActive = false; + protected array $urlParams; + protected bool $isActive = false; /** * ReadingMode constructor. -- cgit v1.2.3