From f90cd8042c712384e7371a672c1781627a50f317 Mon Sep 17 00:00:00 2001 From: Luc SANCHEZ <4697568+ColonelMoutarde@users.noreply.github.com> Date: Sun, 7 May 2023 21:09:56 +0200 Subject: phpstan level 7 for feedController.php (#5373) * phpstan level 7 for feedController.php * phpstan level 7 for feedController.php * phpstan level 7 for feedController.php * phpstan level 7 for feedController.php * A few fixes --------- Co-authored-by: Luc Co-authored-by: Alexandre Alapetite --- app/Models/Entry.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/Models/Entry.php') diff --git a/app/Models/Entry.php b/app/Models/Entry.php index 8f2d66882..b0beaaa99 100644 --- a/app/Models/Entry.php +++ b/app/Models/Entry.php @@ -627,14 +627,14 @@ HTML; return (bool)$ok; } - /** @param array $titlesAsRead */ + /** @param array $titlesAsRead */ public function applyFilterActions(array $titlesAsRead = []): void { if ($this->feed != null) { if ($this->feed->attributes('read_upon_reception') || ($this->feed->attributes('read_upon_reception') === null && FreshRSS_Context::$user_conf->mark_when['reception'])) { $this->_isRead(true); } - if (isset($titlesAsRead[$this->title()])) { + if (!empty($titlesAsRead[$this->title()])) { Minz_Log::debug('Mark title as read: ' . $this->title()); $this->_isRead(true); } -- cgit v1.2.3