Use native typing in more places and clean up 'FeedEnclosure' a bit.

This commit is contained in:
wn_
2024-12-10 20:31:16 +00:00
parent 333bab90a7
commit a1bd6cea1b
13 changed files with 71 additions and 115 deletions

View File

@@ -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)