aboutsummaryrefslogtreecommitdiff
path: root/app/Models
diff options
context:
space:
mode:
Diffstat (limited to 'app/Models')
-rw-r--r--app/Models/Feed.php2
-rw-r--r--app/Models/TagDAO.php2
2 files changed, 3 insertions, 1 deletions
diff --git a/app/Models/Feed.php b/app/Models/Feed.php
index efee3840f..5450d78c6 100644
--- a/app/Models/Feed.php
+++ b/app/Models/Feed.php
@@ -349,8 +349,8 @@ class FreshRSS_Feed extends Minz_Model {
public function load(bool $loadDetails = false, bool $noCache = false): ?SimplePie {
if ($this->url != '') {
/**
- * @phpstan-ignore-next-line
* @throws Minz_FileNotExistException
+ * @phpstan-ignore if.alwaysFalse
*/
if (CACHE_PATH == '') {
throw new Minz_FileNotExistException(
diff --git a/app/Models/TagDAO.php b/app/Models/TagDAO.php
index b5611a7d6..9730ef20a 100644
--- a/app/Models/TagDAO.php
+++ b/app/Models/TagDAO.php
@@ -383,6 +383,7 @@ SQL;
}
$sql .= ' AND et.id_entry IN (' . str_repeat('?,', count($entries) - 1). '?)';
if (is_array($entries[0])) {
+ /** @var array<array<string,string>> $entries */
foreach ($entries as $entry) {
if (!empty($entry['id'])) {
$values[] = $entry['id'];
@@ -394,6 +395,7 @@ SQL;
$values[] = $entry->id();
}
} else {
+ /** @var array<numeric-string> $entries */
foreach ($entries as $entry) {
$values[] = $entry;
}