Переглянути джерело

Add ignore for PHPStan 2.1.55+ (#8864)

Alexandre Alapetite 15 годин тому
батько
коміт
b7c58e590e
2 змінених файлів з 5 додано та 5 видалено
  1. 1 1
      app/Models/Entry.php
  2. 4 4
      composer.lock

+ 1 - 1
app/Models/Entry.php

@@ -1014,7 +1014,7 @@ class FreshRSS_Entry extends Minz_Model {
 							continue;
 							continue;
 						}
 						}
 						$html .= $doc->saveHTML($node) . "\n";
 						$html .= $doc->saveHTML($node) . "\n";
-					} catch (Error $e) {
+					} catch (Error $e) {	// @phpstan-ignore catch.neverThrown
 						if (!str_contains($e->getMessage(), 'Node no longer exists')) {
 						if (!str_contains($e->getMessage(), 'Node no longer exists')) {
 							throw $e;
 							throw $e;
 						}
 						}

+ 4 - 4
composer.lock

@@ -245,11 +245,11 @@
         },
         },
         {
         {
             "name": "phpstan/phpstan",
             "name": "phpstan/phpstan",
-            "version": "2.1.54",
+            "version": "2.1.55",
             "dist": {
             "dist": {
                 "type": "zip",
                 "type": "zip",
-                "url": "https://api.github.com/repos/phpstan/phpstan/zipball/8be50c3992107dc837b17da4d140fbbdf9a5c5bd",
-                "reference": "8be50c3992107dc837b17da4d140fbbdf9a5c5bd",
+                "url": "https://api.github.com/repos/phpstan/phpstan/zipball/9eaac3826ed5e9b8427350a43cac825eeca3f566",
+                "reference": "9eaac3826ed5e9b8427350a43cac825eeca3f566",
                 "shasum": ""
                 "shasum": ""
             },
             },
             "require": {
             "require": {
@@ -294,7 +294,7 @@
                     "type": "github"
                     "type": "github"
                 }
                 }
             ],
             ],
-            "time": "2026-04-29T13:31:09+00:00"
+            "time": "2026-05-18T11:57:34+00:00"
         },
         },
         {
         {
             "name": "phpstan/phpstan-deprecation-rules",
             "name": "phpstan/phpstan-deprecation-rules",