diff options
| author | 2023-05-02 14:38:32 +0200 | |
|---|---|---|
| committer | 2023-05-02 14:38:32 +0200 | |
| commit | bd9fa803f1f0c23face77fa1bc550d1198ce5ad6 (patch) | |
| tree | edba662e84e70a6b0f23c8379d4ef174f714e999 /app/Controllers/feedController.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/Controllers/feedController.php')
| -rw-r--r-- | app/Controllers/feedController.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/app/Controllers/feedController.php b/app/Controllers/feedController.php index 76cd3ad83..1974751d0 100644 --- a/app/Controllers/feedController.php +++ b/app/Controllers/feedController.php @@ -823,8 +823,7 @@ class FreshRSS_feed_Controller extends FreshRSS_ActionController { $feedDAO = FreshRSS_Factory::createFeedDao(); $feed = $feedDAO->searchById($id); - - if (!$feed) { + if ($feed === null) { Minz_Request::bad(_t('feedback.sub.feed.not_found'), array()); return; } @@ -854,8 +853,7 @@ class FreshRSS_feed_Controller extends FreshRSS_ActionController { $entryDAO = FreshRSS_Factory::createEntryDao(); $feed = $feedDAO->searchById($feed_id); - - if (!$feed) { + if ($feed === null) { Minz_Request::bad(_t('feedback.sub.feed.not_found'), array()); return; } |
