Skip to content

Commit 7e895c1

Browse files
committed
[php-nextgen]: Fix content types type
1 parent 4b680eb commit 7e895c1

20 files changed

Lines changed: 20 additions & 20 deletions

File tree

modules/openapi-generator/src/main/resources/php-nextgen/api.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ use {{invokerPackage}}\ObjectSerializer;
6464
*/
6565
protected int $hostIndex;
6666

67-
/** @var string[] $contentTypes **/
67+
/** @var array<string,string[]> $contentTypes **/
6868
public const contentTypes = [{{#operation}}
6969
'{{{operationId}}}' => [{{#consumes}}
7070
'{{{mediaType}}}',{{/consumes}}

samples/client/echo_api/php-nextgen-streaming/src/Api/AuthApi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class AuthApi
7373
*/
7474
protected int $hostIndex;
7575

76-
/** @var string[] $contentTypes **/
76+
/** @var array<string,string[]> $contentTypes **/
7777
public const contentTypes = [
7878
'testAuthHttpBasic' => [
7979
'application/json',

samples/client/echo_api/php-nextgen-streaming/src/Api/BodyApi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class BodyApi
7373
*/
7474
protected int $hostIndex;
7575

76-
/** @var string[] $contentTypes **/
76+
/** @var array<string,string[]> $contentTypes **/
7777
public const contentTypes = [
7878
'testBinaryGif' => [
7979
'application/json',

samples/client/echo_api/php-nextgen-streaming/src/Api/FormApi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class FormApi
7373
*/
7474
protected int $hostIndex;
7575

76-
/** @var string[] $contentTypes **/
76+
/** @var array<string,string[]> $contentTypes **/
7777
public const contentTypes = [
7878
'testFormIntegerBooleanString' => [
7979
'application/x-www-form-urlencoded',

samples/client/echo_api/php-nextgen-streaming/src/Api/HeaderApi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class HeaderApi
7373
*/
7474
protected int $hostIndex;
7575

76-
/** @var string[] $contentTypes **/
76+
/** @var array<string,string[]> $contentTypes **/
7777
public const contentTypes = [
7878
'testHeaderIntegerBooleanStringEnums' => [
7979
'application/json',

samples/client/echo_api/php-nextgen-streaming/src/Api/PathApi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class PathApi
7373
*/
7474
protected int $hostIndex;
7575

76-
/** @var string[] $contentTypes **/
76+
/** @var array<string,string[]> $contentTypes **/
7777
public const contentTypes = [
7878
'testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath' => [
7979
'application/json',

samples/client/echo_api/php-nextgen-streaming/src/Api/QueryApi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class QueryApi
7373
*/
7474
protected int $hostIndex;
7575

76-
/** @var string[] $contentTypes **/
76+
/** @var array<string,string[]> $contentTypes **/
7777
public const contentTypes = [
7878
'testEnumRefString' => [
7979
'application/json',

samples/client/echo_api/php-nextgen/src/Api/AuthApi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class AuthApi
7373
*/
7474
protected int $hostIndex;
7575

76-
/** @var string[] $contentTypes **/
76+
/** @var array<string,string[]> $contentTypes **/
7777
public const contentTypes = [
7878
'testAuthHttpBasic' => [
7979
'application/json',

samples/client/echo_api/php-nextgen/src/Api/BodyApi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class BodyApi
7373
*/
7474
protected int $hostIndex;
7575

76-
/** @var string[] $contentTypes **/
76+
/** @var array<string,string[]> $contentTypes **/
7777
public const contentTypes = [
7878
'testBinaryGif' => [
7979
'application/json',

samples/client/echo_api/php-nextgen/src/Api/FormApi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class FormApi
7373
*/
7474
protected int $hostIndex;
7575

76-
/** @var string[] $contentTypes **/
76+
/** @var array<string,string[]> $contentTypes **/
7777
public const contentTypes = [
7878
'testFormIntegerBooleanString' => [
7979
'application/x-www-form-urlencoded',

0 commit comments

Comments
 (0)