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 Alapetite
2023-05-02 14:38:32 +02:00
committed by GitHub
parent 4de1d5efea
commit bd9fa803f1
15 changed files with 234 additions and 247 deletions

View File

@@ -155,7 +155,10 @@ class FreshRSS_stats_Controller extends FreshRSS_ActionController {
foreach ($feeds as $feed) {
$feedDAO = FreshRSS_Factory::createFeedDao();
$feed['favicon'] = $feedDAO->searchById($feed['id'])->favicon();
$feedObject = $feedDAO->searchById($feed['id']);
if ($feedObject !== null) {
$feed['favicon'] = $feedObject->favicon();
}
$feedDate->setTimestamp($feed['last_date']);
if ($feedDate >= $lastWeek) {