diff options
| author | 2023-05-02 14:38:32 +0200 | |
|---|---|---|
| committer | 2023-05-02 14:38:32 +0200 | |
| commit | bd9fa803f1f0c23face77fa1bc550d1198ce5ad6 (patch) | |
| tree | edba662e84e70a6b0f23c8379d4ef174f714e999 /app/Models/Feed.php | |
| parent | 4de1d5efea128e6cc70c71bad9be28d01e851f81 (diff) | |
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>
Diffstat (limited to 'app/Models/Feed.php')
| -rw-r--r-- | app/Models/Feed.php | 5 |
1 files changed, 1 insertions, 4 deletions
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); |
