From acdc2e688cffaef3db70abad6871818f55710f98 Mon Sep 17 00:00:00 2001 From: Maks Oleksyuk Date: Wed, 1 Apr 2026 13:15:51 +0300 Subject: [PATCH] chore: fix pint error and remove unnecessary ext-json dependency --- .gitattributes | 3 +++ composer.json | 1 - composer.lowest.json | 1 - composer.lowest.lock | 3 +-- src/Writing/OpenApiSpecGenerators/BaseGenerator.php | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.gitattributes b/.gitattributes index b7f08b85..b2f06ea3 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,10 +1,13 @@ * text=auto +/.agents export-ignore +/.githooks export-ignore /.github export-ignore /tests export-ignore /.editorconfig export-ignore /.gitattributes export-ignore /.gitignore export-ignore +/AGENTS.md export-ignore /composer.lowest.json export-ignore /composer.lowest.lock export-ignore /phpunit.xml export-ignore diff --git a/composer.json b/composer.json index 984a6c01..4027c4bb 100644 --- a/composer.json +++ b/composer.json @@ -22,7 +22,6 @@ "require": { "php": ">=8.1", "ext-fileinfo": "*", - "ext-json": "*", "ext-pdo": "*", "fakerphp/faker": "^1.23.1", "laravel/framework": "^9.21 || ^10.0 || ^11.0 || ^12.0 || ^13.0", diff --git a/composer.lowest.json b/composer.lowest.json index 360a85c1..d34efbcb 100644 --- a/composer.lowest.json +++ b/composer.lowest.json @@ -17,7 +17,6 @@ "require": { "php": ">=8.1", "ext-fileinfo": "*", - "ext-json": "*", "ext-pdo": "*", "erusev/parsedown": "1.7.4", "fakerphp/faker": "^1.23.1", diff --git a/composer.lowest.lock b/composer.lowest.lock index f9e64ec9..283a492a 100644 --- a/composer.lowest.lock +++ b/composer.lowest.lock @@ -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": "4c691e7d98776e612a13194197e00412", + "content-hash": "b55b19b8781dd424fd906b03c39206ae", "packages": [ { "name": "brick/math", @@ -8467,7 +8467,6 @@ "platform": { "php": ">=8.1", "ext-fileinfo": "*", - "ext-json": "*", "ext-pdo": "*" }, "platform-dev": {}, diff --git a/src/Writing/OpenApiSpecGenerators/BaseGenerator.php b/src/Writing/OpenApiSpecGenerators/BaseGenerator.php index 8f492ab8..0674e5c1 100644 --- a/src/Writing/OpenApiSpecGenerators/BaseGenerator.php +++ b/src/Writing/OpenApiSpecGenerators/BaseGenerator.php @@ -682,7 +682,7 @@ protected function urlParamToOpenApiParameterObject(string $name, Parameter $det ]; // Workaround for optional parameters if (empty($details->required)) { - $parameterData['description'] = rtrim('Optional parameter. '.$parameterData['description']); + $parameterData['description'] = mb_rtrim('Optional parameter. '.$parameterData['description']); $parameterData['examples'] = [ 'omitted' => [ 'summary' => 'When the value is omitted',