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/Controllers/indexController.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'app/Controllers') diff --git a/app/Controllers/indexController.php b/app/Controllers/indexController.php index 7def8e781..732e4248a 100644 --- a/app/Controllers/indexController.php +++ b/app/Controllers/indexController.php @@ -227,8 +227,8 @@ class FreshRSS_index_Controller extends FreshRSS_ActionController { /** * This action displays the RSS feed of FreshRSS. - * @deprecated See user query RSS sharing instead */ + #[Deprecated('See user query RSS sharing instead')] public function rssAction(): void { $allow_anonymous = FreshRSS_Context::systemConf()->allow_anonymous; @@ -262,9 +262,7 @@ class FreshRSS_index_Controller extends FreshRSS_ActionController { header('Content-Type: application/rss+xml; charset=utf-8'); } - /** - * @deprecated See user query OPML sharing instead - */ + #[Deprecated('See user query OPML sharing instead')] public function opmlAction(): void { $allow_anonymous = FreshRSS_Context::systemConf()->allow_anonymous; -- cgit v1.2.3