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/FeedDAO.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/FeedDAO.php')
| -rw-r--r-- | app/Models/FeedDAO.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Models/FeedDAO.php b/app/Models/FeedDAO.php index 6b5f7f96a..464d3fe06 100644 --- a/app/Models/FeedDAO.php +++ b/app/Models/FeedDAO.php @@ -305,7 +305,7 @@ FROM `_feed` SQL; $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,url:string,kind:int,category:int,name:string,website:string,description:string,lastUpdate:int,priority?:int, * pathEntries?:string,httpAuth:string,error:int|bool,ttl?:int,attributes?:string} $row */ yield $row; |
