diff options
| author | 2023-10-30 20:47:27 +0100 | |
|---|---|---|
| committer | 2023-10-30 20:47:27 +0100 | |
| commit | 06d00995049db9c7b915f67cfd4a5708aace458f (patch) | |
| tree | 0176ca9761b34d72ffd597bd96da3c3ae4912d86 /cli/i18n/I18nValue.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 'cli/i18n/I18nValue.php')
| -rw-r--r-- | cli/i18n/I18nValue.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/cli/i18n/I18nValue.php b/cli/i18n/I18nValue.php index 295e5473e..4a1ddaeee 100644 --- a/cli/i18n/I18nValue.php +++ b/cli/i18n/I18nValue.php @@ -10,10 +10,8 @@ class I18nValue { self::STATE_TODO, ]; - /** @var string */ - private $value; - /** @var string|null */ - private $state; + private string $value; + private ?string $state = null; public function __construct(string $data) { $data = explode(' -> ', $data); |
