summaryrefslogtreecommitdiff
path: root/classes/Prefs.php
diff options
context:
space:
mode:
Diffstat (limited to 'classes/Prefs.php')
-rw-r--r--classes/Prefs.php8
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)