aboutsummaryrefslogtreecommitdiff
path: root/app/Models/CategoryDAO.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2025-04-02 00:46:28 +0200
committerGravatar GitHub <noreply@github.com> 2025-04-02 00:46:28 +0200
commit78dfb44060921a15f820d5794efcf2898f4333c2 (patch)
tree82547cf584bc055b6382fe472e40ff357456d54f /app/Models/CategoryDAO.php
parentca2693441c531f96389c49c9240b4239f0006de5 (diff)
Pass phpstan-strict-rules 2.0.4 (#7488)
New check for Boolean in while conditions Replace https://github.com/FreshRSS/FreshRSS/pull/7481
Diffstat (limited to 'app/Models/CategoryDAO.php')
-rw-r--r--app/Models/CategoryDAO.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Models/CategoryDAO.php b/app/Models/CategoryDAO.php
index ee0d02d6c..7dfb32076 100644
--- a/app/Models/CategoryDAO.php
+++ b/app/Models/CategoryDAO.php
@@ -226,7 +226,7 @@ SQL;
$sql = 'SELECT id, name, kind, `lastUpdate`, error, attributes FROM `_category`';
$stm = $this->pdo->query($sql);
if ($stm !== false) {
- while ($row = $stm->fetch(PDO::FETCH_ASSOC)) {
+ while (is_array($row = $stm->fetch(PDO::FETCH_ASSOC))) {
/** @var array{id:int,name:string,kind:int,lastUpdate:int,error:int,attributes?:array<string,mixed>} $row */
yield $row;
}