Closed may-96 closed 4 years ago
Hey @may-96 thanks for the info on this bug and your suggestion. Please take a look at our new branch which should address this bug. Please let us know if this fixes your issues.
Note: If you are converting a TelnyxObject to an array by using __toArray(), please rename your call to toArray(). Example:
$call->__toArray() is now $call->toArray()
Link for this branch can be found here: https://github.com/team-telnyx/telnyx-php/tree/Bug37
@may-96 The new PR has been merged with master. Please update your archive and it should fix your issues. Have a great week!
Ok, sure. Thanks
I am getting the following exception:
It is in the function where Telnyx object is converted into array:
To fix this error Line 45 should be converted as:
if (strpos($k, '_') === 0) {
This is an issue in PHP version 7.4 when accessing an array by key.