Skip to content

Commit

Permalink
Fix \Snowcap\Emarsys\Client::getContactId method
Browse files Browse the repository at this point in the history
Proper @return but no type casting;
  • Loading branch information
webarchitect609 committed Nov 26, 2016
1 parent 81a5021 commit a9cd875
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Snowcap/Emarsys/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ public function getContactId($fieldId, $fieldValue)
$data = $response->getData();

if (isset($data['id'])) {
return (int)$data['id'];
return $data['id'];
}

throw new ClientException($response->getReplyText(), $response->getReplyCode());
Expand Down

0 comments on commit a9cd875

Please sign in to comment.