summaryrefslogtreecommitdiff
path: root/app/Models/SimplePieCustom.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2025-12-17 10:11:18 +0100
committerGravatar GitHub <noreply@github.com> 2025-12-17 10:11:18 +0100
commit00cd5df294c875ea1e00ab2f645a338a6bd92c8e (patch)
treee1dc56d3d01bffea632d1d4c08a1153d7ea7a7c5 /app/Models/SimplePieCustom.php
parent4bd503591469f47e710f1afbf0b5883f7770065d (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/SimplePieCustom.php')
-rw-r--r--app/Models/SimplePieCustom.php4
1 files changed, 2 insertions, 2 deletions
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);