From 92801090175f5fa44763022f0d9a9d10012e02f1 Mon Sep 17 00:00:00 2001 From: C0rTeZ13 Date: Wed, 12 Feb 2025 11:45:43 +0300 Subject: [PATCH 1/3] composer update --- composer.json | 8 ++++---- src/Data/OpenApi3/OpenApi3ObjectProperty.php | 2 +- src/helpers.php | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/composer.json b/composer.json index 3f2b62f..da8a637 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "ensi/laravel-openapi-server-generator", + "name": "c0rtez13/laravel-openapi-server-generator", "description": "laravel openapi server generator", "type": "library", "license": "MIT", @@ -10,10 +10,10 @@ }, "require-dev": { "friendsofphp/php-cs-fixer": "^3.2", - "pestphp/pest": "^1.22 || ^2.0", - "pestphp/pest-plugin-laravel": "^1.1 || ^2.0", + "pestphp/pest": "^1.22 || ^2.0 || ^3.0", + "pestphp/pest-plugin-laravel": "^1.1 || ^2.0 || ^3.0", "phpstan/extension-installer": "^1.3", - "phpstan/phpstan": "^1.11", + "phpstan/phpstan": "^1.11 || ^2.0", "spaze/phpstan-disallowed-calls": "^2.15", "orchestra/testbench": "^7.0 || ^8.0 || ^9.0" }, diff --git a/src/Data/OpenApi3/OpenApi3ObjectProperty.php b/src/Data/OpenApi3/OpenApi3ObjectProperty.php index f41aa46..a15b8b2 100644 --- a/src/Data/OpenApi3/OpenApi3ObjectProperty.php +++ b/src/Data/OpenApi3/OpenApi3ObjectProperty.php @@ -57,7 +57,7 @@ public function fillFromStdProperty(string $propertyName, stdClass $stdProperty) } } - public function getLaravelValidationsAndEnums(array $options, array &$validations = [], array &$enums = [], string $namePrefix = null): array + public function getLaravelValidationsAndEnums(array $options, array &$validations = [], array &$enums = [], ?string $namePrefix = null): array { $name = "{$namePrefix}{$this->name}"; diff --git a/src/helpers.php b/src/helpers.php index 07861dd..8521f72 100644 --- a/src/helpers.php +++ b/src/helpers.php @@ -22,7 +22,7 @@ function do_with_all_of(stdClass $object, callable $fn): void } if (!function_exists('console_warning')) { - function console_warning(string $text, Throwable $e = null): void + function console_warning(string $text, ?Throwable $e = null): void { $output = resolve(ConsoleOutput::class); From b7d8affa5ab7914865e84c7ae5b9a6f28314b37e Mon Sep 17 00:00:00 2001 From: C0rTeZ13 Date: Wed, 12 Feb 2025 11:46:03 +0300 Subject: [PATCH 2/3] ensitech-273 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index da8a637..949890f 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "c0rtez13/laravel-openapi-server-generator", + "name": "ensi/laravel-openapi-server-generator", "description": "laravel openapi server generator", "type": "library", "license": "MIT", From e38fdf4477325aeb040902fcf816c1212985f088 Mon Sep 17 00:00:00 2001 From: C0rTeZ13 Date: Wed, 12 Feb 2025 13:28:40 +0300 Subject: [PATCH 3/3] ensitech-273 revert composer.json --- composer.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 949890f..3f2b62f 100644 --- a/composer.json +++ b/composer.json @@ -10,10 +10,10 @@ }, "require-dev": { "friendsofphp/php-cs-fixer": "^3.2", - "pestphp/pest": "^1.22 || ^2.0 || ^3.0", - "pestphp/pest-plugin-laravel": "^1.1 || ^2.0 || ^3.0", + "pestphp/pest": "^1.22 || ^2.0", + "pestphp/pest-plugin-laravel": "^1.1 || ^2.0", "phpstan/extension-installer": "^1.3", - "phpstan/phpstan": "^1.11 || ^2.0", + "phpstan/phpstan": "^1.11", "spaze/phpstan-disallowed-calls": "^2.15", "orchestra/testbench": "^7.0 || ^8.0 || ^9.0" },