From 4fad4f36dc30337283465e972e651c48cb8d2c60 Mon Sep 17 00:00:00 2001 From: Hannah De Wachter Date: Wed, 13 Dec 2023 15:26:57 +0100 Subject: [PATCH] Add default values to $websiteKey and $secretKey This fixes issue #2 --- src/gateways/CreditCardGateway.php | 4 ++-- src/gateways/IdealGateway.php | 4 ++-- src/gateways/PayPalGateway.php | 4 ++-- src/gateways/SepaDirectDebitGateway.php | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/gateways/CreditCardGateway.php b/src/gateways/CreditCardGateway.php index f3f6bf8..d066fb5 100644 --- a/src/gateways/CreditCardGateway.php +++ b/src/gateways/CreditCardGateway.php @@ -18,12 +18,12 @@ class CreditCardGateway extends Gateway /** * @var string|null */ - public ?string $websiteKey; + public ?string $websiteKey = ""; /** * @var string|null */ - public ?string $secretKey; + public ?string $secretKey = ""; /** * @var bool|null diff --git a/src/gateways/IdealGateway.php b/src/gateways/IdealGateway.php index 9473668..a3c0ab3 100644 --- a/src/gateways/IdealGateway.php +++ b/src/gateways/IdealGateway.php @@ -18,12 +18,12 @@ class IdealGateway extends Gateway /** * @var string|null */ - public ?string $websiteKey; + public ?string $websiteKey = ""; /** * @var string|null */ - public ?string $secretKey; + public ?string $secretKey = ""; /** * @var bool|null diff --git a/src/gateways/PayPalGateway.php b/src/gateways/PayPalGateway.php index b920e94..1c46d50 100644 --- a/src/gateways/PayPalGateway.php +++ b/src/gateways/PayPalGateway.php @@ -15,12 +15,12 @@ class PayPalGateway extends Gateway /** * @var string|null */ - public ?string $websiteKey; + public ?string $websiteKey = ""; /** * @var string|null */ - public ?string $secretKey; + public ?string $secretKey = ""; /** * @var bool|null diff --git a/src/gateways/SepaDirectDebitGateway.php b/src/gateways/SepaDirectDebitGateway.php index 6239e62..aa108ff 100644 --- a/src/gateways/SepaDirectDebitGateway.php +++ b/src/gateways/SepaDirectDebitGateway.php @@ -15,12 +15,12 @@ class SepaDirectDebitGateway extends Gateway /** * @var string|null */ - public ?string $websiteKey; + public ?string $websiteKey = ""; /** * @var string|null */ - public ?string $secretKey; + public ?string $secretKey = ""; /** * @var bool|null