Skip to content

Commit 3e263ce

Browse files
authored
php: Fix typedoc comment for headers in ApiException (#19217)
1 parent 08e2653 commit 3e263ce

File tree

8 files changed

+27
-27
lines changed

8 files changed

+27
-27
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class ApiException extends Exception
3939
/**
4040
* The HTTP header of the server response.
4141
*
42-
* @var string[]|null
42+
* @var string[][]|null
4343
*/
4444
protected ?array $responseHeaders;
4545
@@ -55,10 +55,10 @@ class ApiException extends Exception
5555
*
5656
* @param string $message Error message
5757
* @param int $code HTTP status code
58-
* @param string[]|null $responseHeaders HTTP response header
59-
* @param mixed $responseBody HTTP decoded body of the server response either as stdClass or string
58+
* @param string[][]|null $responseHeaders HTTP response header
59+
* @param stdClass|string|null $responseBody HTTP decoded body of the server response either as stdClass or string
6060
*/
61-
public function __construct(string $message = "", int $code = 0, ?array $responseHeaders = [], mixed $responseBody = null)
61+
public function __construct(string $message = "", int $code = 0, ?array $responseHeaders = [], stdClass|string|null $responseBody = null)
6262
{
6363
parent::__construct($message, $code);
6464
$this->responseHeaders = $responseHeaders;
@@ -68,7 +68,7 @@ class ApiException extends Exception
6868
/**
6969
* Gets the HTTP response header
7070
*
71-
* @return string[]|null HTTP response header
71+
* @return string[][]|null HTTP response header
7272
*/
7373
public function getResponseHeaders(): ?array
7474
{

modules/openapi-generator/src/main/resources/php/ApiException.mustache

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class ApiException extends Exception
4040
/**
4141
* The HTTP header of the server response.
4242
*
43-
* @var string[]|null
43+
* @var string[][]|null
4444
*/
4545
protected $responseHeaders;
4646
@@ -56,7 +56,7 @@ class ApiException extends Exception
5656
*
5757
* @param string $message Error message
5858
* @param int $code HTTP status code
59-
* @param string[]|null $responseHeaders HTTP response header
59+
* @param string[][]|null $responseHeaders HTTP response header
6060
* @param \stdClass|string|null $responseBody HTTP decoded body of the server response either as \stdClass or string
6161
*/
6262
public function __construct($message = "", $code = 0, $responseHeaders = [], $responseBody = null)
@@ -69,7 +69,7 @@ class ApiException extends Exception
6969
/**
7070
* Gets the HTTP response header
7171
*
72-
* @return string[]|null HTTP response header
72+
* @return string[][]|null HTTP response header
7373
*/
7474
public function getResponseHeaders()
7575
{

modules/openapi-generator/src/main/resources/php/libraries/psr-18/ApiException.mustache

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class ApiException extends RequestException
4444
/**
4545
* The HTTP header of the server response.
4646
*
47-
* @var string[]|null
47+
* @var string[][]|null
4848
*/
4949
protected $responseHeaders;
5050
@@ -72,7 +72,7 @@ class ApiException extends RequestException
7272
/**
7373
* Gets the HTTP response header
7474
*
75-
* @return string[]|null HTTP response header
75+
* @return string[][]|null HTTP response header
7676
*/
7777
public function getResponseHeaders()
7878
{

samples/client/echo_api/php-nextgen/src/ApiException.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class ApiException extends Exception
4949
/**
5050
* The HTTP header of the server response.
5151
*
52-
* @var string[]|null
52+
* @var string[][]|null
5353
*/
5454
protected ?array $responseHeaders;
5555

@@ -65,10 +65,10 @@ class ApiException extends Exception
6565
*
6666
* @param string $message Error message
6767
* @param int $code HTTP status code
68-
* @param string[]|null $responseHeaders HTTP response header
69-
* @param mixed $responseBody HTTP decoded body of the server response either as stdClass or string
68+
* @param string[][]|null $responseHeaders HTTP response header
69+
* @param stdClass|string|null $responseBody HTTP decoded body of the server response either as stdClass or string
7070
*/
71-
public function __construct(string $message = "", int $code = 0, ?array $responseHeaders = [], mixed $responseBody = null)
71+
public function __construct(string $message = "", int $code = 0, ?array $responseHeaders = [], stdClass|string|null $responseBody = null)
7272
{
7373
parent::__construct($message, $code);
7474
$this->responseHeaders = $responseHeaders;
@@ -78,7 +78,7 @@ public function __construct(string $message = "", int $code = 0, ?array $respons
7878
/**
7979
* Gets the HTTP response header
8080
*
81-
* @return string[]|null HTTP response header
81+
* @return string[][]|null HTTP response header
8282
*/
8383
public function getResponseHeaders(): ?array
8484
{

samples/client/petstore/php-nextgen/OpenAPIClient-php/lib/ApiException.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class ApiException extends Exception
4949
/**
5050
* The HTTP header of the server response.
5151
*
52-
* @var string[]|null
52+
* @var string[][]|null
5353
*/
5454
protected $responseHeaders;
5555

@@ -65,7 +65,7 @@ class ApiException extends Exception
6565
*
6666
* @param string $message Error message
6767
* @param int $code HTTP status code
68-
* @param string[]|null $responseHeaders HTTP response header
68+
* @param string[][]|null $responseHeaders HTTP response headerr
6969
* @param \stdClass|string|null $responseBody HTTP decoded body of the server response either as \stdClass or string
7070
*/
7171
public function __construct($message = "", $code = 0, $responseHeaders = [], $responseBody = null)

samples/client/petstore/php-nextgen/OpenAPIClient-php/src/ApiException.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class ApiException extends Exception
4848
/**
4949
* The HTTP header of the server response.
5050
*
51-
* @var string[]|null
51+
* @var string[][]|null
5252
*/
5353
protected ?array $responseHeaders;
5454

@@ -64,10 +64,10 @@ class ApiException extends Exception
6464
*
6565
* @param string $message Error message
6666
* @param int $code HTTP status code
67-
* @param string[]|null $responseHeaders HTTP response header
68-
* @param mixed $responseBody HTTP decoded body of the server response either as stdClass or string
67+
* @param string[][]|null $responseHeaders HTTP response header
68+
* @param stdClass|string|null $responseBody HTTP decoded body of the server response either as stdClass or string
6969
*/
70-
public function __construct(string $message = "", int $code = 0, ?array $responseHeaders = [], mixed $responseBody = null)
70+
public function __construct(string $message = "", int $code = 0, ?array $responseHeaders = [], stdClass|string|null $responseBody = null)
7171
{
7272
parent::__construct($message, $code);
7373
$this->responseHeaders = $responseHeaders;
@@ -77,7 +77,7 @@ public function __construct(string $message = "", int $code = 0, ?array $respons
7777
/**
7878
* Gets the HTTP response header
7979
*
80-
* @return string[]|null HTTP response header
80+
* @return string[][]|null HTTP response header
8181
*/
8282
public function getResponseHeaders(): ?array
8383
{

samples/client/petstore/php/OpenAPIClient-php/lib/ApiException.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class ApiException extends Exception
4949
/**
5050
* The HTTP header of the server response.
5151
*
52-
* @var string[]|null
52+
* @var string[][]|null
5353
*/
5454
protected $responseHeaders;
5555

@@ -65,7 +65,7 @@ class ApiException extends Exception
6565
*
6666
* @param string $message Error message
6767
* @param int $code HTTP status code
68-
* @param string[]|null $responseHeaders HTTP response header
68+
* @param string[][]|null $responseHeaders HTTP response header
6969
* @param \stdClass|string|null $responseBody HTTP decoded body of the server response either as \stdClass or string
7070
*/
7171
public function __construct($message = "", $code = 0, $responseHeaders = [], $responseBody = null)
@@ -78,7 +78,7 @@ public function __construct($message = "", $code = 0, $responseHeaders = [], $re
7878
/**
7979
* Gets the HTTP response header
8080
*
81-
* @return string[]|null HTTP response header
81+
* @return string[][]|null HTTP response header
8282
*/
8383
public function getResponseHeaders()
8484
{

samples/client/petstore/php/psr-18/lib/ApiException.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class ApiException extends RequestException
5353
/**
5454
* The HTTP header of the server response.
5555
*
56-
* @var string[]|null
56+
* @var string[][]|null
5757
*/
5858
protected $responseHeaders;
5959

@@ -81,7 +81,7 @@ public function __construct(
8181
/**
8282
* Gets the HTTP response header
8383
*
84-
* @return string[]|null HTTP response header
84+
* @return string[][]|null HTTP response header
8585
*/
8686
public function getResponseHeaders()
8787
{

0 commit comments

Comments
 (0)