plivo / plivo-php

Plivo PHP Helper Library
http://www.plivo.com
MIT License
110 stars 117 forks source link

Object Id issue #308

Closed shoaibafzal1 closed 1 year ago

shoaibafzal1 commented 1 year ago

same error as this https://github.com/plivo/plivo-php/issues/278 for list numbers

vendor/plivo/plivo-php/src/Plivo/Resources/Number/Number.php Undefined index: object_id and object_type while getting number list if ($response['object_id']) { $this->properties['objectId'] = $response['object_id']; } if ($response['object_type']) { $this->properties['objectType'] = $response['object_type']; }

shouldn't these vars i-e object_id or object_type should be checked I mean in_array($response, 'object_id') etc

kalyan-plivo commented 1 year ago

hi @shoaibafzal1,

We have fixed this in our latest release. Feel free to contact our support team for any queries.