summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHannes Kindströmmer <hannes@kindstrommer.se>2017-04-19 10:53:23 +0200
committerHannes Kindströmmer <hannes@kindstrommer.se>2017-04-19 10:53:23 +0200
commit9bce456599f550f837b83ba4820a830641048248 (patch)
treee3e8054215ce2a32286f0c7fcc37c8f12e7594cc /src
parent5f58c437b268a588599d96568568123e1432c610 (diff)
parent7eba7911132c0e991c7cc1b2e5def5f9532622b4 (diff)
downloadip1-php-sdk-9bce456599f550f837b83ba4820a830641048248.zip
ip1-php-sdk-9bce456599f550f837b83ba4820a830641048248.tar.gz
ip1-php-sdk-9bce456599f550f837b83ba4820a830641048248.tar.bz2
Merge branch 'release/0.3.1-beta'0.3.1-beta
Diffstat (limited to 'src')
-rw-r--r--src/Core/Communicator.php4
-rw-r--r--src/Recipient/RecipientFactory.php6
2 files changed, 5 insertions, 5 deletions
diff --git a/src/Core/Communicator.php b/src/Core/Communicator.php
index f936681..6d64157 100644
--- a/src/Core/Communicator.php
+++ b/src/Core/Communicator.php
@@ -4,7 +4,7 @@
* @author Hannes Kindströmmer <hannes@kindstrommer.se>
* @copyright 2017 iP.1 Networks AB
* @license https://www.gnu.org/licenses/lgpl-3.0.txt LGPL-3.0
-* @version 0.3.0-beta
+* @version 0.3.1-beta
* @since File available since Release 0.1.0-beta
* @link http://api.ip1sms.com/Help
* @link https://github.com/iP1SMS/ip1-php-sdk
@@ -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..6e9b5aa 100644
--- a/src/Recipient/RecipientFactory.php
+++ b/src/Recipient/RecipientFactory.php
@@ -4,7 +4,7 @@
* @author Hannes Kindströmmer <hannes@kindstrommer.se>
* @copyright 2017 iP.1 Networks AB
* @license https://www.gnu.org/licenses/lgpl-3.0.txt LGPL-3.0
-* @version 0.3.0-beta
+* @version 0.3.1-beta
* @since File available since Release 0.1.0-beta
* @link http://api.ip1sms.com/Help
* @link https://github.com/iP1SMS/ip1-php-sdk
@@ -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