Jelajahi Sumber

chore(deps-dev): bump phpstan/phpstan from 2.1.55 to 2.2.1 (#8906)

* chore(deps-dev): bump phpstan/phpstan from 2.1.55 to 2.2.1

---
updated-dependencies:
- dependency-name: phpstan/phpstan
  dependency-version: 2.2.1
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

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

* Fix bug in URL unserialize, json_decode

---------

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 Minggu lalu
induk
melakukan
f04788cb3a
3 mengubah file dengan 18 tambahan dan 7 penghapusan
  1. 1 1
      composer.json
  2. 16 5
      composer.lock
  3. 1 1
      lib/Minz/Url.php

+ 1 - 1
composer.json

@@ -57,7 +57,7 @@
 		"ext-phar": "*",
 		"ext-phar": "*",
 		"ext-tokenizer": "*",
 		"ext-tokenizer": "*",
 		"ext-xmlwriter": "*",
 		"ext-xmlwriter": "*",
-		"phpstan/phpstan": "^2.1",
+		"phpstan/phpstan": "^2.2",
 		"phpstan/phpstan-deprecation-rules": "^2.0",
 		"phpstan/phpstan-deprecation-rules": "^2.0",
 		"phpstan/phpstan-phpunit": "^2.0",
 		"phpstan/phpstan-phpunit": "^2.0",
 		"phpstan/phpstan-strict-rules": "^2.0",
 		"phpstan/phpstan-strict-rules": "^2.0",

+ 16 - 5
composer.lock

@@ -245,11 +245,11 @@
         },
         },
         {
         {
             "name": "phpstan/phpstan",
             "name": "phpstan/phpstan",
-            "version": "2.1.55",
+            "version": "2.2.1",
             "dist": {
             "dist": {
                 "type": "zip",
                 "type": "zip",
-                "url": "https://api.github.com/repos/phpstan/phpstan/zipball/9eaac3826ed5e9b8427350a43cac825eeca3f566",
-                "reference": "9eaac3826ed5e9b8427350a43cac825eeca3f566",
+                "url": "https://api.github.com/repos/phpstan/phpstan/zipball/dea9c8f2d25cc849391042b71e429c1a4bf82660",
+                "reference": "dea9c8f2d25cc849391042b71e429c1a4bf82660",
                 "shasum": ""
                 "shasum": ""
             },
             },
             "require": {
             "require": {
@@ -272,6 +272,17 @@
             "license": [
             "license": [
                 "MIT"
                 "MIT"
             ],
             ],
+            "authors": [
+                {
+                    "name": "Ondřej Mirtes"
+                },
+                {
+                    "name": "Markus Staab"
+                },
+                {
+                    "name": "Vincent Langlet"
+                }
+            ],
             "description": "PHPStan - PHP Static Analysis Tool",
             "description": "PHPStan - PHP Static Analysis Tool",
             "keywords": [
             "keywords": [
                 "dev",
                 "dev",
@@ -294,7 +305,7 @@
                     "type": "github"
                     "type": "github"
                 }
                 }
             ],
             ],
-            "time": "2026-05-18T11:57:34+00:00"
+            "time": "2026-05-28T14:44:12+00:00"
         },
         },
         {
         {
             "name": "phpstan/phpstan-deprecation-rules",
             "name": "phpstan/phpstan-deprecation-rules",
@@ -2003,5 +2014,5 @@
     "platform-overrides": {
     "platform-overrides": {
         "php": "8.1"
         "php": "8.1"
     },
     },
-    "plugin-api-version": "2.6.0"
+    "plugin-api-version": "2.9.0"
 }
 }

+ 1 - 1
lib/Minz/Url.php

@@ -140,7 +140,7 @@ class Minz_Url {
 
 
 	/** @return array{c?:string,a?:string,params?:array<string,mixed>} */
 	/** @return array{c?:string,a?:string,params?:array<string,mixed>} */
 	public static function unserialize(string $url = ''): array {
 	public static function unserialize(string $url = ''): array {
-		$result = json_decode(base64_decode($url, true) ?: '', true, JSON_THROW_ON_ERROR) ?? [];
+		$result = json_decode(base64_decode($url, true) ?: '', associative: true, flags: JSON_THROW_ON_ERROR) ?? [];
 		/** @var array{c?:string,a?:string,params?:array<string,mixed>} $result */
 		/** @var array{c?:string,a?:string,params?:array<string,mixed>} $result */
 		return $result;
 		return $result;
 	}
 	}