Skip to content

Commit ea1ee42

Browse files
committed
hotfix for error handling
1 parent 6f30a58 commit ea1ee42

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

.openapi-generator/templates/ApiClient.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
/**
44
* ApiClient
5-
* PHP version 7.4+
5+
* PHP version 8.1+
66
*
77
* @category Class
88
* @package {{invokerPackage}}

.openapi-generator/templates/ApiException.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class ApiException extends Exception
5050
*
5151
* @var \stdClass|string|null
5252
*/
53-
protected $responseObject;
53+
protected /* null|\stdClass|string|ModelInterface */ mixed $responseObject;
5454
5555
/**
5656
* Constructor

lib/ApiException.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,11 @@ class ApiException extends \Exception
5757

5858
/**
5959
* The deserialized response object.
60+
*
61+
* @var null|\stdClass|string
6062
*/
61-
protected null|\stdClass|string $responseObject;
63+
/* null|\stdClass|string|ModelInterface */
64+
protected mixed $responseObject;
6265

6366
/**
6467
* Constructor.

0 commit comments

Comments
 (0)