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/Category.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/Category.php')
| -rw-r--r-- | app/Models/Category.php | 25 |
1 files changed, 9 insertions, 16 deletions
diff --git a/app/Models/Category.php b/app/Models/Category.php index 1adf81f92..3bb64df8b 100644 --- a/app/Models/Category.php +++ b/app/Models/Category.php @@ -12,26 +12,19 @@ class FreshRSS_Category extends Minz_Model { */ public const KIND_DYNAMIC_OPML = 2; - /** @var int */ - private $id = 0; - /** @var int */ - private $kind = 0; - /** @var string */ - private $name; - /** @var int */ - private $nbFeeds = -1; - /** @var int */ - private $nbNotRead = -1; + private int $id = 0; + private int $kind = 0; + private string $name; + private int $nbFeeds = -1; + private int $nbNotRead = -1; /** @var array<FreshRSS_Feed>|null */ - private $feeds; + private ?array $feeds = null; /** @var bool|int */ private $hasFeedsWithError = false; /** @var array<string,mixed> */ - private $attributes = []; - /** @var int */ - private $lastUpdate = 0; - /** @var bool */ - private $error = false; + private array $attributes = []; + private int $lastUpdate = 0; + private bool $error = false; /** * @param array<FreshRSS_Feed>|null $feeds |
