]> git.mxchange.org Git - friendica.git/commitdiff
Upgrade to PHPStan 2.0
authorArt4 <art4@wlabs.de>
Tue, 12 Nov 2024 21:02:21 +0000 (21:02 +0000)
committerArt4 <art4@wlabs.de>
Tue, 12 Nov 2024 21:02:21 +0000 (21:02 +0000)
composer.json
composer.lock
src/Protocol/ActivityPub/Receiver.php

index 2090075024e1242a26ffead794fe67e37db015a3..4acfe7e41a1f35c1be01f3502dbf80ff7e5add48 100644 (file)
                "mikey179/vfsstream": "^1.6",
                "mockery/mockery": "^1.3",
                "php-mock/php-mock-phpunit": "^2.10",
-               "phpstan/phpstan": "^1.12",
+               "phpstan/phpstan": "^2.0",
                "phpunit/phpunit": "^9"
        },
        "scripts": {
index 7d1e831b14bcb9f4b8b45d2f9f307fb91b06ed2c..8d200a3f6710f575f53921c7540c03010673e7e7 100644 (file)
@@ -4,7 +4,7 @@
         "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
         "This file is @generated automatically"
     ],
-    "content-hash": "11175d4e9806e8a5069d010140431af1",
+    "content-hash": "3e31a2243fb69e47e1b7000cca946fa2",
     "packages": [
         {
             "name": "asika/simple-console",
         },
         {
             "name": "phpstan/phpstan",
-            "version": "1.12.7",
+            "version": "2.0.1",
             "source": {
                 "type": "git",
                 "url": "https://github.com/phpstan/phpstan.git",
-                "reference": "dc2b9976bd8b0f84ec9b0e50cc35378551de7af0"
+                "reference": "ab4e9b4415a5fc9e4d27f7fe16c8bc9d067dcd6d"
             },
             "dist": {
                 "type": "zip",
-                "url": "https://api.github.com/repos/phpstan/phpstan/zipball/dc2b9976bd8b0f84ec9b0e50cc35378551de7af0",
-                "reference": "dc2b9976bd8b0f84ec9b0e50cc35378551de7af0",
+                "url": "https://api.github.com/repos/phpstan/phpstan/zipball/ab4e9b4415a5fc9e4d27f7fe16c8bc9d067dcd6d",
+                "reference": "ab4e9b4415a5fc9e4d27f7fe16c8bc9d067dcd6d",
                 "shasum": ""
             },
             "require": {
-                "php": "^7.2|^8.0"
+                "php": "^7.4|^8.0"
             },
             "conflict": {
                 "phpstan/phpstan-shim": "*"
                     "type": "github"
                 }
             ],
-            "time": "2024-10-18T11:12:07+00:00"
+            "time": "2024-11-11T15:43:04+00:00"
         },
         {
             "name": "phpunit/php-code-coverage",
index 0f8184d3db2071340c41769f4f6e5c60322f71b0..06bedd4ebae0b757f82c18255e267d29e48d290c 100644 (file)
@@ -1899,7 +1899,10 @@ class Receiver
                if (in_array(-1, $object_data['receiver'])) {
                        $object_data['unlisted'] = true;
                        unset($object_data['receiver'][-1]);
-                       unset($object_data['reception_type'][-1]);
+
+                       if (array_key_exists(-1, $object_data['reception_type'])) {
+                               unset($object_data['reception_type'][-1]);
+                       }
                }
 
                return $object_data;