Skip to content

Commit

Permalink
Loosen some type hinting
Browse files Browse the repository at this point in the history
Hit locally, but no production hits afaik, error setting opt in to NULL
due to type hint
  • Loading branch information
eileenmcnaughton committed Dec 3, 2024
1 parent b8ad092 commit a4e9a4b
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/Responses/Contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down

0 comments on commit a4e9a4b

Please sign in to comment.