diff options
Diffstat (limited to 'app/Models/Entry.php')
| -rw-r--r-- | app/Models/Entry.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/app/Models/Entry.php b/app/Models/Entry.php index c29f84172..8f2d66882 100644 --- a/app/Models/Entry.php +++ b/app/Models/Entry.php @@ -350,10 +350,7 @@ HTML; return $this->is_favorite; } - /** - * @return FreshRSS_Feed|null|false - */ - public function feed() { + public function feed(): ?FreshRSS_Feed { if ($this->feed === null) { $feedDAO = FreshRSS_Factory::createFeedDao(); $this->feed = $feedDAO->searchById($this->feedId); @@ -778,7 +775,10 @@ HTML; return false; } - /** @return array{'id':string,'guid':string,'title':string,'author':string,'content':string,'link':string,'date':int,'hash':string,'is_read':?bool,'is_favorite':?bool,'id_feed':int,'tags':string,'attributes':array<string,mixed>} */ + /** + * @return array{'id':string,'guid':string,'title':string,'author':string,'content':string,'link':string,'date':int, + * 'hash':string,'is_read':?bool,'is_favorite':?bool,'id_feed':int,'tags':string,'attributes':array<string,mixed>} + */ public function toArray(): array { return array( 'id' => $this->id(), |
