From 6e05b0cb0036ec78566a544df4e450711e8c0d0f Mon Sep 17 00:00:00 2001 From: Manuel Date: Mon, 11 Mar 2024 13:58:58 +0100 Subject: [PATCH 1/3] fix: empty security descriptor empty security descriptor must be an object instead of empty empty array --- src/Support/Generator/Operation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Support/Generator/Operation.php b/src/Support/Generator/Operation.php index 65dc14ea..5c3d6ada 100644 --- a/src/Support/Generator/Operation.php +++ b/src/Support/Generator/Operation.php @@ -183,7 +183,7 @@ public function toArray() if (count($this->security)) { $securities = []; foreach ($this->security as $security) { - $securities[] = is_array($security) ? $security : $security->toArray(); + $securities[] = (object) (is_array($security) ? $security : $security->toArray()); } $result['security'] = $securities; } From 35528489f572d9acfc69c98e6604fc766a73707b Mon Sep 17 00:00:00 2001 From: Manuel Date: Mon, 11 Mar 2024 14:06:57 +0100 Subject: [PATCH 2/3] feat: allow nikic/php-parser ^4.15 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 343fad56..79efdbab 100644 --- a/composer.json +++ b/composer.json @@ -18,7 +18,7 @@ "require": { "php": "^8.1", "illuminate/contracts": "^10.0|^11.0", - "nikic/php-parser": "^5.0", + "nikic/php-parser": "^5.0|^4.15", "phpstan/phpdoc-parser": "^1.0", "spatie/laravel-package-tools": "^1.9.2" }, From cd9cd1d37926dfc24dc25f9eab9152dd8145e30b Mon Sep 17 00:00:00 2001 From: Manuel Date: Mon, 11 Mar 2024 14:10:09 +0100 Subject: [PATCH 3/3] feat: revert nikic/php-parser to ^5.0 only --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 79efdbab..343fad56 100644 --- a/composer.json +++ b/composer.json @@ -18,7 +18,7 @@ "require": { "php": "^8.1", "illuminate/contracts": "^10.0|^11.0", - "nikic/php-parser": "^5.0|^4.15", + "nikic/php-parser": "^5.0", "phpstan/phpdoc-parser": "^1.0", "spatie/laravel-package-tools": "^1.9.2" },