aboutsummaryrefslogtreecommitdiff
path: root/app/Models/Feed.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2023-05-02 14:38:32 +0200
committerGravatar GitHub <noreply@github.com> 2023-05-02 14:38:32 +0200
commitbd9fa803f1f0c23face77fa1bc550d1198ce5ad6 (patch)
treeedba662e84e70a6b0f23c8379d4ef174f714e999 /app/Models/Feed.php
parent4de1d5efea128e6cc70c71bad9be28d01e851f81 (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.php5
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);