From 5b28a35003a015e29770094932157f13a3f7f5c0 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sun, 9 Jun 2024 20:32:12 +0200 Subject: Pass PHPStan level 9 (#6544) * More PHPStan * More, passing * 4 more files * Update to PHPStan 1.11.4 Needed for fixed bug: Consider numeric-string types after string concat https://github.com/phpstan/phpstan/releases/tag/1.11.4 * Pass PHPStan level 9 Start tracking booleansInConditions * Fix mark as read * Fix doctype * ctype_digit --- app/Controllers/feedController.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'app/Controllers/feedController.php') diff --git a/app/Controllers/feedController.php b/app/Controllers/feedController.php index 131d58d5e..2ecf6c374 100644 --- a/app/Controllers/feedController.php +++ b/app/Controllers/feedController.php @@ -439,9 +439,8 @@ class FreshRSS_feed_Controller extends FreshRSS_ActionController { $nb_new_articles = 0; foreach ($feeds as $feed) { - /** @var FreshRSS_Feed|null $feed */ $feed = Minz_ExtensionManager::callHook('feed_before_actualize', $feed); - if (null === $feed) { + if (!($feed instanceof FreshRSS_Feed)) { continue; } -- cgit v1.2.3