From 11a483ef92eff347b826d18398191d97406a2d68 Mon Sep 17 00:00:00 2001 From: frickelbruder Date: Wed, 4 Sep 2024 19:06:11 +0200 Subject: [PATCH] Removes now useless JSON format list --- .../src/main/resources/php/libraries/psr-18/api.mustache | 8 -------- .../client/petstore/php/psr-18/lib/Api/AnotherFakeApi.php | 8 -------- samples/client/petstore/php/psr-18/lib/Api/DefaultApi.php | 8 -------- samples/client/petstore/php/psr-18/lib/Api/FakeApi.php | 8 -------- .../php/psr-18/lib/Api/FakeClassnameTags123Api.php | 8 -------- samples/client/petstore/php/psr-18/lib/Api/PetApi.php | 8 -------- samples/client/petstore/php/psr-18/lib/Api/StoreApi.php | 8 -------- samples/client/petstore/php/psr-18/lib/Api/UserApi.php | 8 -------- 8 files changed, 64 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/php/libraries/psr-18/api.mustache b/modules/openapi-generator/src/main/resources/php/libraries/psr-18/api.mustache index f50da31891d3..6c921ca92f80 100644 --- a/modules/openapi-generator/src/main/resources/php/libraries/psr-18/api.mustache +++ b/modules/openapi-generator/src/main/resources/php/libraries/psr-18/api.mustache @@ -94,14 +94,6 @@ use function sprintf; */ protected $streamFactory; - /** - * @var string[] - */ - public const JSON_FORMATS = [ - 'application/merge-patch+json', - 'application/json', - ]; - public function __construct( ClientInterface $httpClient = null, Configuration $config = null, diff --git a/samples/client/petstore/php/psr-18/lib/Api/AnotherFakeApi.php b/samples/client/petstore/php/psr-18/lib/Api/AnotherFakeApi.php index aadae8882777..3baad2743a60 100644 --- a/samples/client/petstore/php/psr-18/lib/Api/AnotherFakeApi.php +++ b/samples/client/petstore/php/psr-18/lib/Api/AnotherFakeApi.php @@ -103,14 +103,6 @@ class AnotherFakeApi */ protected $streamFactory; - /** - * @var string[] - */ - public const JSON_FORMATS = [ - 'application/merge-patch+json', - 'application/json', - ]; - public function __construct( ClientInterface $httpClient = null, Configuration $config = null, diff --git a/samples/client/petstore/php/psr-18/lib/Api/DefaultApi.php b/samples/client/petstore/php/psr-18/lib/Api/DefaultApi.php index ccdccbf6a495..c96dc3599e22 100644 --- a/samples/client/petstore/php/psr-18/lib/Api/DefaultApi.php +++ b/samples/client/petstore/php/psr-18/lib/Api/DefaultApi.php @@ -103,14 +103,6 @@ class DefaultApi */ protected $streamFactory; - /** - * @var string[] - */ - public const JSON_FORMATS = [ - 'application/merge-patch+json', - 'application/json', - ]; - public function __construct( ClientInterface $httpClient = null, Configuration $config = null, diff --git a/samples/client/petstore/php/psr-18/lib/Api/FakeApi.php b/samples/client/petstore/php/psr-18/lib/Api/FakeApi.php index daa29503b5e1..144a23513718 100644 --- a/samples/client/petstore/php/psr-18/lib/Api/FakeApi.php +++ b/samples/client/petstore/php/psr-18/lib/Api/FakeApi.php @@ -103,14 +103,6 @@ class FakeApi */ protected $streamFactory; - /** - * @var string[] - */ - public const JSON_FORMATS = [ - 'application/merge-patch+json', - 'application/json', - ]; - public function __construct( ClientInterface $httpClient = null, Configuration $config = null, diff --git a/samples/client/petstore/php/psr-18/lib/Api/FakeClassnameTags123Api.php b/samples/client/petstore/php/psr-18/lib/Api/FakeClassnameTags123Api.php index e549888f62b0..399fe7622888 100644 --- a/samples/client/petstore/php/psr-18/lib/Api/FakeClassnameTags123Api.php +++ b/samples/client/petstore/php/psr-18/lib/Api/FakeClassnameTags123Api.php @@ -103,14 +103,6 @@ class FakeClassnameTags123Api */ protected $streamFactory; - /** - * @var string[] - */ - public const JSON_FORMATS = [ - 'application/merge-patch+json', - 'application/json', - ]; - public function __construct( ClientInterface $httpClient = null, Configuration $config = null, diff --git a/samples/client/petstore/php/psr-18/lib/Api/PetApi.php b/samples/client/petstore/php/psr-18/lib/Api/PetApi.php index cebe8d28b256..10f628c21f90 100644 --- a/samples/client/petstore/php/psr-18/lib/Api/PetApi.php +++ b/samples/client/petstore/php/psr-18/lib/Api/PetApi.php @@ -103,14 +103,6 @@ class PetApi */ protected $streamFactory; - /** - * @var string[] - */ - public const JSON_FORMATS = [ - 'application/merge-patch+json', - 'application/json', - ]; - public function __construct( ClientInterface $httpClient = null, Configuration $config = null, diff --git a/samples/client/petstore/php/psr-18/lib/Api/StoreApi.php b/samples/client/petstore/php/psr-18/lib/Api/StoreApi.php index 5a6133796990..e5b924fface4 100644 --- a/samples/client/petstore/php/psr-18/lib/Api/StoreApi.php +++ b/samples/client/petstore/php/psr-18/lib/Api/StoreApi.php @@ -103,14 +103,6 @@ class StoreApi */ protected $streamFactory; - /** - * @var string[] - */ - public const JSON_FORMATS = [ - 'application/merge-patch+json', - 'application/json', - ]; - public function __construct( ClientInterface $httpClient = null, Configuration $config = null, diff --git a/samples/client/petstore/php/psr-18/lib/Api/UserApi.php b/samples/client/petstore/php/psr-18/lib/Api/UserApi.php index 688ff465d922..2d0e8a7b92a0 100644 --- a/samples/client/petstore/php/psr-18/lib/Api/UserApi.php +++ b/samples/client/petstore/php/psr-18/lib/Api/UserApi.php @@ -103,14 +103,6 @@ class UserApi */ protected $streamFactory; - /** - * @var string[] - */ - public const JSON_FORMATS = [ - 'application/merge-patch+json', - 'application/json', - ]; - public function __construct( ClientInterface $httpClient = null, Configuration $config = null,