diff options
| author | 2025-12-17 10:11:18 +0100 | |
|---|---|---|
| committer | 2025-12-17 10:11:18 +0100 | |
| commit | 00cd5df294c875ea1e00ab2f645a338a6bd92c8e (patch) | |
| tree | e1dc56d3d01bffea632d1d4c08a1153d7ea7a7c5 /app/Models/Context.php | |
| parent | 4bd503591469f47e710f1afbf0b5883f7770065d (diff) | |
Use native PHP #[Deprecated] (#8325)
https://php.watch/versions/8.4/Deprecated
And enfore it with PHPUnit + PHPStan.
Especially useful for extensions.
Diffstat (limited to 'app/Models/Context.php')
| -rw-r--r-- | app/Models/Context.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/app/Models/Context.php b/app/Models/Context.php index cc1b77026..a8feb7dbd 100644 --- a/app/Models/Context.php +++ b/app/Models/Context.php @@ -57,11 +57,13 @@ final class FreshRSS_Context { /** * @access private * @deprecated Will be made `private`; use `FreshRSS_Context::systemConf()` instead. + * @internal */ public static ?FreshRSS_SystemConfiguration $system_conf = null; /** * @access private * @deprecated Will be made `private`; use `FreshRSS_Context::userConf()` instead. + * @internal */ public static ?FreshRSS_UserConfiguration $user_conf = null; @@ -186,6 +188,13 @@ final class FreshRSS_Context { FreshRSS_Context::$user_conf = null; } + /** + * @internal + */ + public static function setUserConf(?FreshRSS_UserConfiguration $user_conf): void { + FreshRSS_Context::$user_conf = $user_conf; + } + /** @return array<int,FreshRSS_Category> where the key is the category ID */ public static function categories(): array { if (empty(self::$categories)) { |
