diff options
author | Hannes Kindströmmer <hannes@kindstrommer.se> | 2017-03-16 11:37:25 +0100 |
---|---|---|
committer | Hannes Kindströmmer <hannes@kindstrommer.se> | 2017-03-16 11:38:04 +0100 |
commit | 0d3f1dc8b98fd25d0df709da76642212b664b068 (patch) | |
tree | ad3aeb4b58ac5378a086d15e49a3fae2eeb63e58 /src | |
parent | 401c829a1ded22265d9152ed4d34e0bfb58ddda3 (diff) | |
download | ip1-php-sdk-0d3f1dc8b98fd25d0df709da76642212b664b068.zip ip1-php-sdk-0d3f1dc8b98fd25d0df709da76642212b664b068.tar.gz ip1-php-sdk-0d3f1dc8b98fd25d0df709da76642212b664b068.tar.bz2 |
Fixed issue #7 and #8
Signed-off-by: Hannes Kindströmmer <hannes@kindstrommer.se>
Diffstat (limited to 'src')
-rw-r--r-- | src/Recipient/ProcessedContact.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Recipient/ProcessedContact.php b/src/Recipient/ProcessedContact.php index cdd7436..5408dee 100644 --- a/src/Recipient/ProcessedContact.php +++ b/src/Recipient/ProcessedContact.php @@ -109,7 +109,7 @@ class ProcessedContact extends Contact implements UpdatableComponent, Membership */ public function getMemberships(Communicator $communicator = null): ClassValidationArray { - if ($communicator != null) { + if ($communicator !== null) { $membershipJSON = $communicator->get("api/contacts/".$this->contactID."/memberships"); $membershipStd = json_decode($membershipJSON); $memberships = []; @@ -130,7 +130,7 @@ class ProcessedContact extends Contact implements UpdatableComponent, Membership */ public function getGroups(Communicator $communicator = null): ClassValidationArray { - if ($communicator != null) { + if ($communicator !== null) { $groupsJSON = $communicator->get('api/contacts/'.$this->contactID. '/groups'); $groupStd = json_decode($groupsJSON); $groups = RecipientFactory::createProcessedGroupsFromStdClassArray($groupStd); |