Skip to content

Remove implicit nullable types #749

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion src/Adyen/AdyenException.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class AdyenException extends Exception
public function __construct(
$message = "",
$code = 0,
\Throwable $previous = null,
?\Throwable $previous = null,
$status = null,
$errorType = null,
$pspReference = null,
Expand Down
2 changes: 1 addition & 1 deletion src/Adyen/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class Config
*
* @param array|null $params
*/
public function __construct(array $params = null)
public function __construct(?array $params = null)
{
if ($params) {
foreach ($params as $key => $param) {
Expand Down
2 changes: 1 addition & 1 deletion src/Adyen/Model/AcsWebhooks/Amount.php
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,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('currency', $data ?? [], null);
$this->setIfExists('value', $data ?? [], null);
Expand Down
2 changes: 1 addition & 1 deletion src/Adyen/Model/AcsWebhooks/AuthenticationInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ public function getTypeAllowableValues()
* @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('acsTransId', $data ?? [], null);
$this->setIfExists('challenge', $data ?? [], null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ public function getStatusAllowableValues()
* @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('authentication', $data ?? [], null);
$this->setIfExists('balancePlatform', $data ?? [], null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ public function getTypeAllowableValues()
* @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('data', $data ?? [], null);
$this->setIfExists('environment', $data ?? [], null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,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('notificationResponse', $data ?? [], null);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Adyen/Model/AcsWebhooks/ChallengeInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ public function getFlowAllowableValues()
* @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('challengeCancel', $data ?? [], null);
$this->setIfExists('flow', $data ?? [], null);
Expand Down
2 changes: 1 addition & 1 deletion src/Adyen/Model/AcsWebhooks/PurchaseInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,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('date', $data ?? [], null);
$this->setIfExists('merchantName', $data ?? [], null);
Expand Down
2 changes: 1 addition & 1 deletion src/Adyen/Model/AcsWebhooks/Resource.php
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,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('balancePlatform', $data ?? [], null);
$this->setIfExists('creationDate', $data ?? [], null);
Expand Down
2 changes: 1 addition & 1 deletion src/Adyen/Model/BalanceControl/Amount.php
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,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('currency', $data ?? [], null);
$this->setIfExists('value', $data ?? [], null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ public function getTypeAllowableValues()
* @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('amount', $data ?? [], null);
$this->setIfExists('description', $data ?? [], null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ public function getTypeAllowableValues()
* @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('amount', $data ?? [], null);
$this->setIfExists('createdAt', $data ?? [], null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ public function getTypeAllowableValues()
* @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('accountNumber', $data ?? [], null);
$this->setIfExists('bsbCode', $data ?? [], null);
Expand Down
2 changes: 1 addition & 1 deletion src/Adyen/Model/BalancePlatform/AccountHolder.php
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ public function getStatusAllowableValues()
* @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('balancePlatform', $data ?? [], null);
$this->setIfExists('capabilities', $data ?? [], null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ public function getVerificationStatusAllowableValues()
* @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('allowed', $data ?? [], null);
$this->setIfExists('allowedLevel', $data ?? [], null);
Expand Down
2 changes: 1 addition & 1 deletion src/Adyen/Model/BalancePlatform/AccountHolderInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,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('balancePlatform', $data ?? [], null);
$this->setIfExists('capabilities', $data ?? [], null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ public function getStatusAllowableValues()
* @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('balancePlatform', $data ?? [], null);
$this->setIfExists('capabilities', $data ?? [], null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ public function getVerificationStatusAllowableValues()
* @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('allowed', $data ?? [], null);
$this->setIfExists('allowedLevel', $data ?? [], null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,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('operation', $data ?? [], null);
$this->setIfExists('value', $data ?? [], null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ public function getTypeAllowableValues()
* @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('code', $data ?? [], null);
$this->setIfExists('type', $data ?? [], null);
Expand Down
2 changes: 1 addition & 1 deletion src/Adyen/Model/BalancePlatform/Address.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,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('city', $data ?? [], null);
$this->setIfExists('country', $data ?? [], null);
Expand Down
2 changes: 1 addition & 1 deletion src/Adyen/Model/BalancePlatform/AddressRequirement.php
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ public function getTypeAllowableValues()
* @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('description', $data ?? [], null);
$this->setIfExists('requiredAddressFields', $data ?? [], null);
Expand Down
2 changes: 1 addition & 1 deletion src/Adyen/Model/BalancePlatform/Amount.php
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,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('currency', $data ?? [], null);
$this->setIfExists('value', $data ?? [], null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ public function getTypeAllowableValues()
* @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('description', $data ?? [], null);
$this->setIfExists('max', $data ?? [], null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ public function getTypeAllowableValues()
* @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('description', $data ?? [], null);
$this->setIfExists('type', $data ?? [], null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,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('sdkOutput', $data ?? [], null);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ public function getTypeAllowableValues()
* @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('ids', $data ?? [], null);
$this->setIfExists('strongCustomerAuthentication', $data ?? [], null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ public function getTypeAllowableValues()
* @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('deviceId', $data ?? [], null);
$this->setIfExists('ids', $data ?? [], null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ public function getTypeAllowableValues()
* @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('ids', $data ?? [], null);
$this->setIfExists('type', $data ?? [], null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,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('sdkInput', $data ?? [], null);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Adyen/Model/BalancePlatform/Authentication.php
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,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('password', $data ?? [], null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ public function getTypeAllowableValues()
* @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('accountNumber', $data ?? [], null);
$this->setIfExists('bankCode', $data ?? [], null);
Expand Down
2 changes: 1 addition & 1 deletion src/Adyen/Model/BalancePlatform/Balance.php
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,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('available', $data ?? [], null);
$this->setIfExists('balance', $data ?? [], null);
Expand Down
2 changes: 1 addition & 1 deletion src/Adyen/Model/BalancePlatform/BalanceAccount.php
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ public function getStatusAllowableValues()
* @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('accountHolderId', $data ?? [], null);
$this->setIfExists('balances', $data ?? [], null);
Expand Down
2 changes: 1 addition & 1 deletion src/Adyen/Model/BalancePlatform/BalanceAccountBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ public function getStatusAllowableValues()
* @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('accountHolderId', $data ?? [], null);
$this->setIfExists('defaultCurrencyCode', $data ?? [], null);
Expand Down
2 changes: 1 addition & 1 deletion src/Adyen/Model/BalancePlatform/BalanceAccountInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,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('accountHolderId', $data ?? [], null);
$this->setIfExists('defaultCurrencyCode', $data ?? [], null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ public function getStatusAllowableValues()
* @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('accountHolderId', $data ?? [], null);
$this->setIfExists('description', $data ?? [], null);
Expand Down
2 changes: 1 addition & 1 deletion src/Adyen/Model/BalancePlatform/BalancePlatform.php
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,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('description', $data ?? [], null);
$this->setIfExists('id', $data ?? [], null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,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('hasNext', $data ?? [], null);
$this->setIfExists('hasPrevious', $data ?? [], null);
Expand Down
2 changes: 1 addition & 1 deletion src/Adyen/Model/BalancePlatform/BankAccount.php
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,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('accountIdentification', $data ?? [], null);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,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('accountNumber', $data ?? [], null);
$this->setIfExists('bsbCode', $data ?? [], null);
Expand Down
2 changes: 1 addition & 1 deletion src/Adyen/Model/BalancePlatform/BankAccountDetails.php
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,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('accountNumber', $data ?? [], null);
$this->setIfExists('accountType', $data ?? [], null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ public function getTypeAllowableValues()
* @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('bankAccountIdentificationTypes', $data ?? [], null);
$this->setIfExists('description', $data ?? [], null);
Expand Down
Loading