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/SimplePieCustom.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/Models/SimplePieCustom.php') diff --git a/app/Models/SimplePieCustom.php b/app/Models/SimplePieCustom.php index c3593e4a2..44e5b030e 100644 --- a/app/Models/SimplePieCustom.php +++ b/app/Models/SimplePieCustom.php @@ -13,8 +13,8 @@ final class FreshRSS_SimplePieCustom extends \SimplePie\SimplePie $limits = FreshRSS_Context::systemConf()->limits; $this->get_registry()->register(\SimplePie\File::class, FreshRSS_SimplePieFetch::class); $this->set_useragent(FRESHRSS_USERAGENT); - $this->set_cache_name_function('sha1'); - $this->set_cache_location(CACHE_PATH); + $this->set_cache_name_function('sha1'); // @phpstan-ignore method.deprecated + $this->set_cache_location(CACHE_PATH); // @phpstan-ignore method.deprecated $this->set_cache_duration($limits['cache_duration'], $limits['cache_duration_min'], $limits['cache_duration_max']); $this->enable_order_by_date(false); -- cgit v1.2.3