diff options
-rw-r--r-- | src/Core/Communicator.php | 2 | ||||
-rw-r--r-- | src/Recipient/RecipientFactory.php | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/Core/Communicator.php b/src/Core/Communicator.php index f936681..7ccfb61 100644 --- a/src/Core/Communicator.php +++ b/src/Core/Communicator.php @@ -57,7 +57,7 @@ class Communicator * filled with ProcessedOutGoingSMS. * @throws \InvalidArgumentException When param isn't any of the classes listed in param args. */ - public function add(ProcessableComponentInterface $component): ProcessedComponentInterface + public function add(ProcessableComponentInterface $component) { switch (get_class($component)) { case "IP1\RESTClient\Recipient\Contact": diff --git a/src/Recipient/RecipientFactory.php b/src/Recipient/RecipientFactory.php index 24d378a..b172196 100644 --- a/src/Recipient/RecipientFactory.php +++ b/src/Recipient/RecipientFactory.php @@ -227,8 +227,8 @@ class RecipientFactory $stdClassSMS->Message, $stdClassSMS->To, $stdClassSMS->ID, - new \DateTime($stdClassSMS->Created), - new \DateTime($stdClassSMS->Updated), + new \DateTime($stdClassSMS->Created ?? null), + new \DateTime($stdClassSMS->Updated ?? null), $stdClassSMS->Status, $stdClassSMS->StatusDescription, $stdClassSMS->BundleID |