From a1bd6cea1bbb3041ee8e2ba44a80cd2ea0b8209f Mon Sep 17 00:00:00 2001 From: wn_ Date: Tue, 10 Dec 2024 20:31:16 +0000 Subject: Use native typing in more places and clean up 'FeedEnclosure' a bit. --- classes/Prefs.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'classes/Prefs.php') 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 */ - private $cache = []; + private array $cache = []; - /** @var PDO */ - private $pdo; + private ?PDO $pdo = null; public static function get_instance() : Prefs { if (self::$instance == null) -- cgit v1.2.3-54-g00ecf