aboutsummaryrefslogtreecommitdiff
path: root/app/Models/Entry.php
diff options
context:
space:
mode:
authorGravatar Luc SANCHEZ <4697568+ColonelMoutarde@users.noreply.github.com> 2023-05-07 21:09:56 +0200
committerGravatar GitHub <noreply@github.com> 2023-05-07 21:09:56 +0200
commitf90cd8042c712384e7371a672c1781627a50f317 (patch)
treee7d97cbdcedd8f06b9eba51d069de6159e7d762e /app/Models/Entry.php
parentaa30635f978099a600a01cab296e9170ccda2b28 (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.php4
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);
}