diff options
| author | 2025-12-17 10:11:18 +0100 | |
|---|---|---|
| committer | 2025-12-17 10:11:18 +0100 | |
| commit | 00cd5df294c875ea1e00ab2f645a338a6bd92c8e (patch) | |
| tree | e1dc56d3d01bffea632d1d4c08a1153d7ea7a7c5 /tests | |
| 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 'tests')
| -rw-r--r-- | tests/app/Models/SearchTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/app/Models/SearchTest.php b/tests/app/Models/SearchTest.php index 990598dff..fad5d4768 100644 --- a/tests/app/Models/SearchTest.php +++ b/tests/app/Models/SearchTest.php @@ -251,7 +251,7 @@ final class SearchTest extends \PHPUnit\Framework\TestCase { $previousUserConf = FreshRSS_Context::hasUserConf() ? FreshRSS_Context::userConf() : null; $newUserConf = $previousUserConf instanceof FreshRSS_UserConfiguration ? clone $previousUserConf : clone FreshRSS_UserConfiguration::default(); $newUserConf->queries = $queries; - FreshRSS_Context::$user_conf = $newUserConf; + FreshRSS_Context::setUserConf($newUserConf); try { $search = new FreshRSS_BooleanSearch($input); @@ -259,7 +259,7 @@ final class SearchTest extends \PHPUnit\Framework\TestCase { self::assertSame($expectedResult[0], trim($actualSql)); self::assertSame($expectedResult[1], $actualValues); } finally { - FreshRSS_Context::$user_conf = $previousUserConf; + FreshRSS_Context::setUserConf($previousUserConf); } } |
