From 00cd5df294c875ea1e00ab2f645a338a6bd92c8e Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Wed, 17 Dec 2025 10:11:18 +0100 Subject: Use native PHP #[Deprecated] (#8325) https://php.watch/versions/8.4/Deprecated And enfore it with PHPUnit + PHPStan. Especially useful for extensions. --- app/Models/Context.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'app/Models/Context.php') 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 where the key is the category ID */ public static function categories(): array { if (empty(self::$categories)) { -- cgit v1.2.3