zoho / zohocrm-php-sdk-6.0

Apache License 2.0
1 stars 1 forks source link

ParameterMap can't handle string parameters #2

Closed law909 closed 7 months ago

law909 commented 7 months ago

When adding a string parameter like

$params->add(new \com\zoho\crm\api\Param('fields'), 'id,Last_Name,Email');

get_class($value) in line 70 throws an \Error on PHP 8, but code catches \Exception. Should catch \Throwable.

raja-7453 commented 7 months ago

@law909 Please try the sample code provided below.

$paramInstance->add(new \com\zoho\crm\api\Param('fields',"String"), 'id,Last_Name,Email');

Please forward any SDK-related queries to support@zohocrm.com and we'll take things forward.