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. --- lib/lib_rss.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'lib/lib_rss.php') diff --git a/lib/lib_rss.php b/lib/lib_rss.php index 7636ee225..8bc06cd36 100644 --- a/lib/lib_rss.php +++ b/lib/lib_rss.php @@ -307,16 +307,12 @@ function invalidateHttpCache(string $username = ''): bool { return FreshRSS_UserDAO::ctouch($username); } -/** - * @deprecated Use {@see Minz_Request::connectionRemoteAddress()} instead. - */ +#[Deprecated('Use Minz_Request::connectionRemoteAddress() instead.')] function connectionRemoteAddress(): string { return Minz_Request::connectionRemoteAddress(); } -/** - * @deprecated Use {@see FreshRSS_http_Util::checkTrustedIP()} instead. - */ +#[Deprecated('Use FreshRSS_http_Util::checkTrustedIP() instead.')] function checkTrustedIP(): bool { return FreshRSS_http_Util::checkTrustedIP(); } -- cgit v1.2.3