Browse Source

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

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

Bumps [phpstan/phpstan](https://github.com/phpstan/phpstan-phar-composer-source) from 2.2.2 to 2.2.3.
- [Commits](https://github.com/phpstan/phpstan-phar-composer-source/commits)

---
updated-dependencies:
- dependency-name: phpstan/phpstan
  dependency-version: 2.2.3
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Ignore a could of redundant tests, for keeping additional safety

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
dependabot[bot] 1 day ago
parent
commit
93e83943a3
3 changed files with 6 additions and 6 deletions
  1. 1 1
      app/Controllers/importExportController.php
  2. 1 1
      app/Models/BooleanSearch.php
  3. 4 4
      composer.lock

+ 1 - 1
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);

+ 1 - 1
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--) {

+ 4 - 4
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",