Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions lib/Api/PostcardsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,15 @@ class PostcardsApi
protected $hostIndex;

/**
* @param Configuration $config
* @param HeaderSelector $selector
* @param Configuration|null $config
* @param ClientInterface|null $client
* @param HeaderSelector|null $selector
Comment thread
alies-dev marked this conversation as resolved.
* @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec
*/
public function __construct(
Configuration $config = null,
ClientInterface $client = null,
HeaderSelector $selector = null,
?Configuration $config = null,
?ClientInterface $client = null,
?HeaderSelector $selector = null,
$customHeaders = [],
$hostIndex = 0
) {
Expand Down
4 changes: 2 additions & 2 deletions lib/Model/AddressEditable.php
Original file line number Diff line number Diff line change
Expand Up @@ -229,10 +229,10 @@ public function getModelName()
/**
* Constructor
*
* @param mixed[] $data Associated array of property values
* @param mixed[]|null $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
public function __construct(?array $data = null)
{
$this->container['address_line1'] = $data['address_line1'] ?? null;
$this->container['address_line2'] = $data['address_line2'] ?? null;
Expand Down
4 changes: 2 additions & 2 deletions lib/Model/IntlVerification.php
Original file line number Diff line number Diff line change
Expand Up @@ -312,10 +312,10 @@ public function getObjectAllowableValues()
/**
* Constructor
*
* @param mixed[] $data Associated array of property values
* @param mixed[]|null $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
public function __construct(?array $data = null)
{
$this->container['id'] = $data['id'] ?? null;
$this->container['recipient'] = $data['recipient'] ?? null;
Expand Down
4 changes: 2 additions & 2 deletions lib/Model/Postcard.php
Original file line number Diff line number Diff line change
Expand Up @@ -310,10 +310,10 @@ public function getObjectAllowableValues()
/**
* Constructor
*
* @param mixed[] $data Associated array of property values
* @param mixed[]|null $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
public function __construct(?array $data = null)
{
$this->container['id'] = $data['id'] ?? null;
$this->container['to'] = $data['to'] ?? null;
Expand Down
4 changes: 2 additions & 2 deletions lib/Model/PostcardEditable.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,10 +234,10 @@ public function getModelName()
/**
* Constructor
*
* @param mixed[] $data Associated array of property values
* @param mixed[]|null $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
public function __construct(?array $data = null)
{
$this->container['to'] = $data['to'] ?? null;
$this->container['from'] = $data['from'] ?? null;
Expand Down
4 changes: 2 additions & 2 deletions lib/Model/Thumbnail.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,10 @@ public function getModelName()
/**
* Constructor
*
* @param mixed[] $data Associated array of property values
* @param mixed[]|null $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
public function __construct(?array $data = null)
{
$this->container['small'] = $data['small'] ?? null;
$this->container['medium'] = $data['medium'] ?? null;
Expand Down
4 changes: 2 additions & 2 deletions lib/Model/UsVerification.php
Original file line number Diff line number Diff line change
Expand Up @@ -268,10 +268,10 @@ public function getObjectAllowableValues()
/**
* Constructor
*
* @param mixed[] $data Associated array of property values
* @param mixed[]|null $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
public function __construct(?array $data = null)
{
$this->container['id'] = $data['id'] ?? null;
$this->container['recipient'] = $data['recipient'] ?? null;
Expand Down