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>
This commit is contained in:
Alexandre AlapetiteandLuc SANCHEZ authored and GitHub committed 2023-05-02 14:38:32 +02:00
1 parent 4de1d5efea
commit bd9fa803f1
15 files changed
+234 -247

No files matched your search

+2 -4
View File
@@ -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;
}