Jelajahi Sumber

Fix for PHPStan 2.1.44 (#8644)

https://github.com/phpstan/phpstan/releases/tag/2.1.44
Alexandre Alapetite 1 Minggu lalu
induk
melakukan
eba59a8c7c
2 mengubah file dengan 4 tambahan dan 5 penghapusan
  1. 0 1
      app/Controllers/indexController.php
  2. 4 4
      composer.lock

+ 0 - 1
app/Controllers/indexController.php

@@ -90,7 +90,6 @@ class FreshRSS_index_Controller extends FreshRSS_ActionController {
 			'id' => $entry->dateAdded(raw: true),
 			'date' => $entry->date(raw: true),
 			'lastUserModified' => $entry->lastUserModified() ?? 0,
-			default => throw new InvalidArgumentException('Unsupported sort criterion for transition: ' . FreshRSS_Context::$sort),
 		};
 		$searchString = $operator . ':' . ($offset < 0 ? '/' : '') . date('Y-m-d', $timestamp + ($offset * 86400)) . ($offset > 0 ? '/' : '');
 		return Minz_Url::display(Minz_Request::modifiedCurrentRequest([

+ 4 - 4
composer.lock

@@ -245,11 +245,11 @@
         },
         {
             "name": "phpstan/phpstan",
-            "version": "2.1.42",
+            "version": "2.1.44",
             "dist": {
                 "type": "zip",
-                "url": "https://api.github.com/repos/phpstan/phpstan/zipball/1279e1ce86ba768f0780c9d889852b4e02ff40d0",
-                "reference": "1279e1ce86ba768f0780c9d889852b4e02ff40d0",
+                "url": "https://api.github.com/repos/phpstan/phpstan/zipball/4a88c083c668b2c364a425c9b3171b2d9ea5d218",
+                "reference": "4a88c083c668b2c364a425c9b3171b2d9ea5d218",
                 "shasum": ""
             },
             "require": {
@@ -294,7 +294,7 @@
                     "type": "github"
                 }
             ],
-            "time": "2026-03-17T14:58:32+00:00"
+            "time": "2026-03-25T17:34:21+00:00"
         },
         {
             "name": "phpstan/phpstan-deprecation-rules",