diff options
| author | 2025-12-17 10:11:18 +0100 | |
|---|---|---|
| committer | 2025-12-17 10:11:18 +0100 | |
| commit | 00cd5df294c875ea1e00ab2f645a338a6bd92c8e (patch) | |
| tree | e1dc56d3d01bffea632d1d4c08a1153d7ea7a7c5 /app/Models/Entry.php | |
| parent | 4bd503591469f47e710f1afbf0b5883f7770065d (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/Entry.php')
| -rw-r--r-- | app/Models/Entry.php | 6 |
1 files changed, 4 insertions, 2 deletions
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); } |
