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/Entry.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'app/Models/Entry.php') diff --git a/app/Models/Entry.php b/app/Models/Entry.php index fa12ceb66..9d9f880fd 100644 --- a/app/Models/Entry.php +++ b/app/Models/Entry.php @@ -160,7 +160,8 @@ class FreshRSS_Entry extends Minz_Model { } return $title; } - /** @deprecated */ + + #[Deprecated('Use authors() instead')] public function author(): string { return $this->authors(true); } @@ -540,7 +541,8 @@ HTML; $this->hash = ''; $this->title = trim($value); } - /** @deprecated */ + + #[Deprecated('Use _authors() instead')] public function _author(string $value): void { $this->_authors($value); } -- cgit v1.2.3