From bd9fa803f1f0c23face77fa1bc550d1198ce5ad6 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Tue, 2 May 2023 14:38:32 +0200 Subject: PHPStan Level 7 complete DAOs (#5354) * PHPStan Level 7 complete DAOs * Finalise PHPStan Level 7 for CategoryDAO * PHPStan Level 7 for Context and Search * Apply suggestions from code review Co-authored-by: Luc SANCHEZ <4697568+ColonelMoutarde@users.noreply.github.com> --- app/Models/Feed.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'app/Models/Feed.php') diff --git a/app/Models/Feed.php b/app/Models/Feed.php index c0fce6e4a..6c840942b 100644 --- a/app/Models/Feed.php +++ b/app/Models/Feed.php @@ -125,10 +125,7 @@ class FreshRSS_Feed extends Minz_Model { return $this->hubUrl; } - /** - * @return FreshRSS_Category|null|false - */ - public function category() { + public function category(): ?FreshRSS_Category { if ($this->category === null) { $catDAO = FreshRSS_Factory::createCategoryDao(); $this->category = $catDAO->searchById($this->categoryId); -- cgit v1.2.3