From a4e9a4b72ef0f8c41f1e6b9c76ef64444a9d4474 Mon Sep 17 00:00:00 2001 From: eileen Date: Tue, 3 Dec 2024 14:29:45 +1300 Subject: [PATCH] Loosen some type hinting Hit locally, but no production hits afaik, error setting opt in to NULL due to type hint --- src/Responses/Contact.php | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/Responses/Contact.php b/src/Responses/Contact.php index 7520394..39198b7 100644 --- a/src/Responses/Contact.php +++ b/src/Responses/Contact.php @@ -122,27 +122,31 @@ public function setContactReferenceField($contactReferenceField) { protected $optOut; /** - * @var string timestamp + * Opt out timestamp. + * + * @var string|null */ protected $optOutTimestamp; /** - * @var string unix timestamp for when opted in. + * Unix timestamp for when opted in. + * + * @var string|null */ protected $optInTimestamp; /** - * @param string $optInTimestamp + * @param string|null $optInTimestamp * * @return Contact */ - public function setOptInTimestamp(string $optInTimestamp): Contact { + public function setOptInTimestamp(?string $optInTimestamp): Contact { $this->optInTimestamp = $optInTimestamp; return $this; } /** - * @param string|null $optInTimestamp + * @param string|null $optOutTimestamp * * @return Contact */