Skip to content

Commit fbf73b1

Browse files
committed
update sample
1 parent 6c8b05a commit fbf73b1

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

samples/server/petstore/php-symfony/SymfonyBundle-php/Controller/Controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ protected function validate($data, $asserts = null): ?Response
161161
*
162162
* @return array|null
163163
*/
164-
private function exceptionToArray(\Throwable $exception = null): ?array
164+
private function exceptionToArray(?\Throwable $exception = null): ?array
165165
{
166166
if (null === $exception) {
167167
return null;

samples/server/petstore/php-symfony/SymfonyBundle-php/Model/ApiResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class ApiResponse
7373
* Constructor
7474
* @param array|null $data Associated array of property values initializing the model
7575
*/
76-
public function __construct(array $data = null)
76+
public function __construct(?array $data = null)
7777
{
7878
if (is_array($data)) {
7979
$this->code = array_key_exists('code', $data) ? $data['code'] : $this->code;

samples/server/petstore/php-symfony/SymfonyBundle-php/Model/Category.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class Category
6666
* Constructor
6767
* @param array|null $data Associated array of property values initializing the model
6868
*/
69-
public function __construct(array $data = null)
69+
public function __construct(?array $data = null)
7070
{
7171
if (is_array($data)) {
7272
$this->id = array_key_exists('id', $data) ? $data['id'] : $this->id;

samples/server/petstore/php-symfony/SymfonyBundle-php/Model/Order.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class Order
100100
* Constructor
101101
* @param array|null $data Associated array of property values initializing the model
102102
*/
103-
public function __construct(array $data = null)
103+
public function __construct(?array $data = null)
104104
{
105105
if (is_array($data)) {
106106
$this->id = array_key_exists('id', $data) ? $data['id'] : $this->id;

samples/server/petstore/php-symfony/SymfonyBundle-php/Model/Pet.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ class Pet
106106
* Constructor
107107
* @param array|null $data Associated array of property values initializing the model
108108
*/
109-
public function __construct(array $data = null)
109+
public function __construct(?array $data = null)
110110
{
111111
if (is_array($data)) {
112112
$this->id = array_key_exists('id', $data) ? $data['id'] : $this->id;

samples/server/petstore/php-symfony/SymfonyBundle-php/Model/Tag.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class Tag
6565
* Constructor
6666
* @param array|null $data Associated array of property values initializing the model
6767
*/
68-
public function __construct(array $data = null)
68+
public function __construct(?array $data = null)
6969
{
7070
if (is_array($data)) {
7171
$this->id = array_key_exists('id', $data) ? $data['id'] : $this->id;

samples/server/petstore/php-symfony/SymfonyBundle-php/Model/User.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ class User
115115
* Constructor
116116
* @param array|null $data Associated array of property values initializing the model
117117
*/
118-
public function __construct(array $data = null)
118+
public function __construct(?array $data = null)
119119
{
120120
if (is_array($data)) {
121121
$this->id = array_key_exists('id', $data) ? $data['id'] : $this->id;

0 commit comments

Comments
 (0)