mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-19 15:07:07 +00:00
PHP8.4 comptible, php-symfony resources (#20162)
* matrix php build * NullableTypeForNullDefaultValue * update sample
This commit is contained in:
@@ -73,7 +73,7 @@ class ApiResponse
|
||||
* Constructor
|
||||
* @param array|null $data Associated array of property values initializing the model
|
||||
*/
|
||||
public function __construct(array $data = null)
|
||||
public function __construct(?array $data = null)
|
||||
{
|
||||
if (is_array($data)) {
|
||||
$this->code = array_key_exists('code', $data) ? $data['code'] : $this->code;
|
||||
|
||||
@@ -66,7 +66,7 @@ class Category
|
||||
* Constructor
|
||||
* @param array|null $data Associated array of property values initializing the model
|
||||
*/
|
||||
public function __construct(array $data = null)
|
||||
public function __construct(?array $data = null)
|
||||
{
|
||||
if (is_array($data)) {
|
||||
$this->id = array_key_exists('id', $data) ? $data['id'] : $this->id;
|
||||
|
||||
@@ -100,7 +100,7 @@ class Order
|
||||
* Constructor
|
||||
* @param array|null $data Associated array of property values initializing the model
|
||||
*/
|
||||
public function __construct(array $data = null)
|
||||
public function __construct(?array $data = null)
|
||||
{
|
||||
if (is_array($data)) {
|
||||
$this->id = array_key_exists('id', $data) ? $data['id'] : $this->id;
|
||||
|
||||
@@ -106,7 +106,7 @@ class Pet
|
||||
* Constructor
|
||||
* @param array|null $data Associated array of property values initializing the model
|
||||
*/
|
||||
public function __construct(array $data = null)
|
||||
public function __construct(?array $data = null)
|
||||
{
|
||||
if (is_array($data)) {
|
||||
$this->id = array_key_exists('id', $data) ? $data['id'] : $this->id;
|
||||
|
||||
@@ -65,7 +65,7 @@ class Tag
|
||||
* Constructor
|
||||
* @param array|null $data Associated array of property values initializing the model
|
||||
*/
|
||||
public function __construct(array $data = null)
|
||||
public function __construct(?array $data = null)
|
||||
{
|
||||
if (is_array($data)) {
|
||||
$this->id = array_key_exists('id', $data) ? $data['id'] : $this->id;
|
||||
|
||||
@@ -115,7 +115,7 @@ class User
|
||||
* Constructor
|
||||
* @param array|null $data Associated array of property values initializing the model
|
||||
*/
|
||||
public function __construct(array $data = null)
|
||||
public function __construct(?array $data = null)
|
||||
{
|
||||
if (is_array($data)) {
|
||||
$this->id = array_key_exists('id', $data) ? $data['id'] : $this->id;
|
||||
|
||||
Reference in New Issue
Block a user