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/Config.php | |
| parent | 333bab90a7d4d159d001e3f0579b10cced763249 (diff) | |
Use native typing in more places and clean up 'FeedEnclosure' a bit.
Diffstat (limited to 'classes/Config.php')
| -rw-r--r-- | classes/Config.php | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/classes/Config.php b/classes/Config.php index 9d671215a..356f81391 100644 --- a/classes/Config.php +++ b/classes/Config.php @@ -252,17 +252,15 @@ class Config { Config::HTTP_429_THROTTLE_INTERVAL => [ 3600, Config::T_INT ] ]; - /** @var Config|null */ - private static $instance; + private static ?Config $instance = null; /** @var array<string, array<bool|int|string>> */ - private $params = []; + private array $params = []; /** @var array<string, mixed> */ - private $version = []; + private array $version = []; - /** @var Db_Migrations|null $migrations */ - private $migrations; + private Db_Migrations $migrations; public static function get_instance() : Config { if (self::$instance == null) |