constantcontact/php-sdk — pull request #47 by xpavp03 (2014-09-02 11:18:55+00:00)
Title: prevent run time error if update failed

When trying to change contact's e-mail address to one that already exists, filed under some other contact, the update call returns "" which is decoded to null. (It may be that the new address must be unsubscribed, not sure.)
Contact::create() then dies with this error:
Argument 1 passed to Ctct\Components\Contacts\Contact::create() must be an array, null given