Skip to content

A free, self-hostable news aggregator…

chore(deps-dev): bump phpstan/phpstan from 2.2.2 to 2.2.3 (#8962)

dependabot[bot]93e83943a3c2
diff --git a/app/Controllers/importExportController.php b/app/Controllers/importExportController.php
index 8a64ef575..f39fc2722 100644
--- a/app/Controllers/importExportController.php
+++ b/app/Controllers/importExportController.php
@@ -805,7 +805,7 @@ class FreshRSS_importExport_Controller extends FreshRSS_ActionController {
$this->view->sqliteName = basename($path);
if ($this->view->sqliteName === 'db.sqlite') {
$username = Minz_User::name() ?? '_';
- $date = date('Y-m-d_H-i-s', filemtime($path) ?: time());
+ $date = date('Y-m-d_H-i-s', filemtime($path) ?: time()); // @phpstan-ignore ternary.alwaysTrue (for additional safety)
$this->view->sqliteName = 'freshrss_' . $username . '_' . $date . '_db.sqlite';
}
$this->view->_layout(null);
diff --git a/app/Models/BooleanSearch.php b/app/Models/BooleanSearch.php
index 11e74056c..a0b19fe19 100644
--- a/app/Models/BooleanSearch.php
+++ b/app/Models/BooleanSearch.php
@@ -117,7 +117,7 @@ class FreshRSS_BooleanSearch implements \Stringable {
$fromS = [];
$toS = [];
foreach ($all_matches as $matches) {
- if (empty($matches['search'])) {
+ if (empty($matches['search'])) { // @phpstan-ignore empty.offset (for additional safety)
continue;
}
for ($i = count($matches['search']) - 1; $i >= 0; $i--) {
diff --git a/composer.lock b/composer.lock
index 567b883c7..c838dcb2b 100644
--- a/composer.lock
+++ b/composer.lock
@@ -245,11 +245,11 @@
},
{
"name": "phpstan/phpstan",
- "version": "2.2.2",
+ "version": "2.2.3",
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/phpstan/phpstan/zipball/e5cc34d491a90e79c216d824f60fe21fd4d93bd6",
- "reference": "e5cc34d491a90e79c216d824f60fe21fd4d93bd6",
+ "url": "https://api.github.com/repos/phpstan/phpstan/zipball/4048833dd47b377287818841877fb3087289509c",
+ "reference": "4048833dd47b377287818841877fb3087289509c",
"shasum": ""
},
"require": {
@@ -305,7 +305,7 @@
"type": "github"
}
],
- "time": "2026-06-05T09:00:01+00:00"
+ "time": "2026-06-30T21:15:26+00:00"
},
{
"name": "phpstan/phpstan-deprecation-rules",