diff options
| author | wn_ <invalid@email.com> | 2024-12-10 20:31:16 +0000 |
|---|---|---|
| committer | wn_ <invalid@email.com> | 2024-12-14 12:26:59 +0000 |
| commit | a1bd6cea1bbb3041ee8e2ba44a80cd2ea0b8209f (patch) | |
| tree | 7b52637ba8866c2efec6eb5a0c8adb75474038d6 /classes/Prefs.php | |
| parent | 333bab90a7d4d159d001e3f0579b10cced763249 (diff) | |
Use native typing in more places and clean up 'FeedEnclosure' a bit.
Diffstat (limited to 'classes/Prefs.php')
| -rw-r--r-- | classes/Prefs.php | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/classes/Prefs.php b/classes/Prefs.php index f7e6e39c0..08f402d40 100644 --- a/classes/Prefs.php +++ b/classes/Prefs.php @@ -144,14 +144,12 @@ class Prefs { Prefs::_PREFS_MIGRATED ]; - /** @var Prefs|null */ - private static $instance; + private static ?Prefs $instance = null; /** @var array<string, bool|int|string> */ - private $cache = []; + private array $cache = []; - /** @var PDO */ - private $pdo; + private ?PDO $pdo = null; public static function get_instance() : Prefs { if (self::$instance == null) |