diff options
| author | 2023-05-07 21:09:56 +0200 | |
|---|---|---|
| committer | 2023-05-07 21:09:56 +0200 | |
| commit | f90cd8042c712384e7371a672c1781627a50f317 (patch) | |
| tree | e7d97cbdcedd8f06b9eba51d069de6159e7d762e /app/Models/Entry.php | |
| parent | aa30635f978099a600a01cab296e9170ccda2b28 (diff) | |
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 <sanchezluc+freshrss@gmail.com>
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
Diffstat (limited to 'app/Models/Entry.php')
| -rw-r--r-- | app/Models/Entry.php | 4 |
1 files changed, 2 insertions, 2 deletions
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<string,int> $titlesAsRead */ + /** @param array<string,bool> $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); } |
