I tried upgrading to the new 2.0.2 PHP CRM SDK, but there's a critical error that makes it impossible to use.
When trying to get a BulkAPIResponse, the code says this:
if (array_key_exists(APIConstants::VARIABLES, $bulkResponseJSON)) {
However, 'APIConstants' does not have anything defined as VARIABLES, which means it always crashes:
Symfony\Component\Debug\Exception\FatalThrowableError : Undefined class constant 'VARIABLES'
at /usr/local/cat/vendor/zohocrm/php-sdk/src/crm/api/response/BulkAPIResponse.php:108
104| array_push($this->bulkEntitiesResponse, new EntityResponse($orgTax));
105| }
106| }
107| }
> 108| if (array_key_exists(APIConstants::VARIABLES, $bulkResponseJSON)) {
109|
110| $variables= $bulkResponseJSON[APIConstants::VARIABLES];
111| foreach ($variables as $variable) {
112| if ($variable != null && array_key_exists(APIConstants::STATUS, $variable)) {
Exception trace:
1 zcrmsdk\crm\api\response\BulkAPIResponse::processResponseData()
/usr/local/cat/vendor/zohocrm/php-sdk/src/crm/api/response/CommonAPIResponse.php:78
2 zcrmsdk\crm\api\response\CommonAPIResponse::processResponse()
/usr/local/cat/vendor/zohocrm/php-sdk/src/crm/api/response/CommonAPIResponse.php:67
There doesn't appear to be anywhere to actually report this as a critical, high severity bug - can this be urgently forwarded to the correct people? (And it's probably worthwhile asking them to enable bug reporting on Github, too)