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
6 changes: 3 additions & 3 deletions lib/Api/DomainsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ class DomainsApi
* @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec
*/
public function __construct(
ClientInterface $client = null,
Configuration $config = null,
HeaderSelector $selector = null,
?ClientInterface $client = null,
?Configuration $config = null,
?HeaderSelector $selector = null,
$hostIndex = 0
) {
$this->client = $client ?: new Client();
Expand Down
6 changes: 3 additions & 3 deletions lib/Api/EmailsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ class EmailsApi
* @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec
*/
public function __construct(
ClientInterface $client = null,
Configuration $config = null,
HeaderSelector $selector = null,
?ClientInterface $client = null,
?Configuration $config = null,
?HeaderSelector $selector = null,
$hostIndex = 0
) {
$this->client = $client ?: new Client();
Expand Down
6 changes: 3 additions & 3 deletions lib/Api/FilesApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ class FilesApi
* @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec
*/
public function __construct(
ClientInterface $client = null,
Configuration $config = null,
HeaderSelector $selector = null,
?ClientInterface $client = null,
?Configuration $config = null,
?HeaderSelector $selector = null,
$hostIndex = 0
) {
$this->client = $client ?: new Client();
Expand Down
6 changes: 3 additions & 3 deletions lib/Api/InboundRouteApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ class InboundRouteApi
* @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec
*/
public function __construct(
ClientInterface $client = null,
Configuration $config = null,
HeaderSelector $selector = null,
?ClientInterface $client = null,
?Configuration $config = null,
?HeaderSelector $selector = null,
$hostIndex = 0
) {
$this->client = $client ?: new Client();
Expand Down
6 changes: 3 additions & 3 deletions lib/Api/SegmentsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ class SegmentsApi
* @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec
*/
public function __construct(
ClientInterface $client = null,
Configuration $config = null,
HeaderSelector $selector = null,
?ClientInterface $client = null,
?Configuration $config = null,
?HeaderSelector $selector = null,
$hostIndex = 0
) {
$this->client = $client ?: new Client();
Expand Down
6 changes: 3 additions & 3 deletions lib/Api/SuppressionsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@ class SuppressionsApi
* @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec
*/
public function __construct(
ClientInterface $client = null,
Configuration $config = null,
HeaderSelector $selector = null,
?ClientInterface $client = null,
?Configuration $config = null,
?HeaderSelector $selector = null,
$hostIndex = 0
) {
$this->client = $client ?: new Client();
Expand Down
6 changes: 3 additions & 3 deletions lib/Api/VerificationsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ class VerificationsApi
* @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec
*/
public function __construct(
ClientInterface $client = null,
Configuration $config = null,
HeaderSelector $selector = null,
?ClientInterface $client = null,
?Configuration $config = null,
?HeaderSelector $selector = null,
$hostIndex = 0
) {
$this->client = $client ?: new Client();
Expand Down
2 changes: 1 addition & 1 deletion lib/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ public function getHostSettings()
* @param array|null $variables hash of variable and the corresponding value (optional)
* @return string URL based on host settings
*/
public static function getHostString(array $hostSettings, $hostIndex, array $variables = null)
public static function getHostString(array $hostSettings, $hostIndex, ?array $variables = null)
{
if (null === $variables) {
$variables = [];
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/ApiKey.php
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ public function getModelName()
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
public function __construct(?array $data = null)
{
$this->setIfExists('access_level', $data ?? [], null);
$this->setIfExists('name', $data ?? [], null);
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/ApiKeyPayload.php
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ public function getModelName()
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
public function __construct(?array $data = null)
{
$this->setIfExists('name', $data ?? [], null);
$this->setIfExists('access_level', $data ?? [], null);
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/BodyPart.php
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ public function getModelName()
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
public function __construct(?array $data = null)
{
$this->setIfExists('content_type', $data ?? [], null);
$this->setIfExists('content', $data ?? [], null);
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/Campaign.php
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ public function getModelName()
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
public function __construct(?array $data = null)
{
$this->setIfExists('content', $data ?? [], null);
$this->setIfExists('name', $data ?? [], null);
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/CampaignOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ public function getModelName()
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
public function __construct(?array $data = null)
{
$this->setIfExists('delivery_optimization', $data ?? [], null);
$this->setIfExists('track_opens', $data ?? [], null);
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/CampaignRecipient.php
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ public function getModelName()
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
public function __construct(?array $data = null)
{
$this->setIfExists('list_names', $data ?? [], null);
$this->setIfExists('segment_names', $data ?? [], null);
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/CampaignTemplate.php
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ public function getModelName()
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
public function __construct(?array $data = null)
{
$this->setIfExists('poolname', $data ?? [], null);
$this->setIfExists('from', $data ?? [], null);
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/ChannelLogStatusSummary.php
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ public function getModelName()
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
public function __construct(?array $data = null)
{
$this->setIfExists('channel_name', $data ?? [], null);
$this->setIfExists('recipients', $data ?? [], null);
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/ConsentData.php
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ public function getModelName()
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
public function __construct(?array $data = null)
{
$this->setIfExists('consent_ip', $data ?? [], null);
$this->setIfExists('consent_date', $data ?? [], null);
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/Contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ public function getModelName()
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
public function __construct(?array $data = null)
{
$this->setIfExists('email', $data ?? [], null);
$this->setIfExists('status', $data ?? [], null);
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/ContactActivity.php
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ public function getModelName()
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
public function __construct(?array $data = null)
{
$this->setIfExists('total_sent', $data ?? [], null);
$this->setIfExists('total_opened', $data ?? [], null);
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/ContactPayload.php
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ public function getModelName()
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
public function __construct(?array $data = null)
{
$this->setIfExists('email', $data ?? [], null);
$this->setIfExists('status', $data ?? [], null);
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/ContactUpdatePayload.php
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ public function getModelName()
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
public function __construct(?array $data = null)
{
$this->setIfExists('first_name', $data ?? [], null);
$this->setIfExists('last_name', $data ?? [], null);
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/ContactsList.php
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ public function getModelName()
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
public function __construct(?array $data = null)
{
$this->setIfExists('list_name', $data ?? [], null);
$this->setIfExists('public_list_id', $data ?? [], null);
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/DomainData.php
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ public function getModelName()
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
public function __construct(?array $data = null)
{
$this->setIfExists('validation_log', $data ?? [], null);
$this->setIfExists('domain', $data ?? [], null);
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/DomainDetail.php
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ public function getModelName()
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
public function __construct(?array $data = null)
{
$this->setIfExists('domain', $data ?? [], null);
$this->setIfExists('default_domain', $data ?? [], null);
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/DomainPayload.php
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ public function getModelName()
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
public function __construct(?array $data = null)
{
$this->setIfExists('domain', $data ?? [], null);
$this->setIfExists('set_as_default', $data ?? [], null);
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/DomainUpdatePayload.php
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ public function getModelName()
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
public function __construct(?array $data = null)
{
$this->setIfExists('certificate_status', $data ?? [], null);
$this->setIfExists('verp', $data ?? [], null);
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/EmailContent.php
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ public function getModelName()
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
public function __construct(?array $data = null)
{
$this->setIfExists('body', $data ?? [], null);
$this->setIfExists('merge', $data ?? [], null);
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/EmailData.php
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ public function getModelName()
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
public function __construct(?array $data = null)
{
$this->setIfExists('preview', $data ?? [], null);
$this->setIfExists('attachments', $data ?? [], null);
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/EmailJobFailedStatus.php
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ public function getModelName()
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
public function __construct(?array $data = null)
{
$this->setIfExists('address', $data ?? [], null);
$this->setIfExists('error', $data ?? [], null);
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/EmailJobStatus.php
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ public function getModelName()
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
public function __construct(?array $data = null)
{
$this->setIfExists('id', $data ?? [], null);
$this->setIfExists('status', $data ?? [], null);
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/EmailMessageData.php
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ public function getModelName()
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
public function __construct(?array $data = null)
{
$this->setIfExists('recipients', $data ?? [], null);
$this->setIfExists('content', $data ?? [], null);
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/EmailRecipient.php
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ public function getModelName()
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
public function __construct(?array $data = null)
{
$this->setIfExists('email', $data ?? [], null);
$this->setIfExists('fields', $data ?? [], null);
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/EmailSend.php
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ public function getModelName()
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
public function __construct(?array $data = null)
{
$this->setIfExists('transaction_id', $data ?? [], null);
$this->setIfExists('message_id', $data ?? [], null);
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/EmailStatus.php
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ public function getModelName()
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
public function __construct(?array $data = null)
{
$this->setIfExists('from', $data ?? [], null);
$this->setIfExists('to', $data ?? [], null);
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/EmailTransactionalMessageData.php
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ public function getModelName()
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
public function __construct(?array $data = null)
{
$this->setIfExists('recipients', $data ?? [], null);
$this->setIfExists('content', $data ?? [], null);
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/EmailValidationResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ public function getModelName()
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
public function __construct(?array $data = null)
{
$this->setIfExists('account', $data ?? [], null);
$this->setIfExists('domain', $data ?? [], null);
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/EmailView.php
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ public function getModelName()
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
public function __construct(?array $data = null)
{
$this->setIfExists('body', $data ?? [], null);
$this->setIfExists('subject', $data ?? [], null);
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/EmailsPayload.php
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ public function getModelName()
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
public function __construct(?array $data = null)
{
$this->setIfExists('rule', $data ?? [], null);
$this->setIfExists('emails', $data ?? [], null);
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/ExportLink.php
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ public function getModelName()
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
public function __construct(?array $data = null)
{
$this->setIfExists('link', $data ?? [], null);
$this->setIfExists('public_export_id', $data ?? [], null);
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/FileInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ public function getModelName()
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
public function __construct(?array $data = null)
{
$this->setIfExists('file_name', $data ?? [], null);
$this->setIfExists('size', $data ?? [], null);
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/FilePayload.php
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ public function getModelName()
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
public function __construct(?array $data = null)
{
$this->setIfExists('binary_content', $data ?? [], null);
$this->setIfExists('name', $data ?? [], null);
Expand Down
Loading