diff options
| author | 2025-04-02 00:46:28 +0200 | |
|---|---|---|
| committer | 2025-04-02 00:46:28 +0200 | |
| commit | 78dfb44060921a15f820d5794efcf2898f4333c2 (patch) | |
| tree | 82547cf584bc055b6382fe472e40ff357456d54f /app/Models/CategoryDAO.php | |
| parent | ca2693441c531f96389c49c9240b4239f0006de5 (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.php | 2 |
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; } |
