twilio / twilio-php

A PHP library for communicating with the Twilio REST API and generating TwiML.
MIT License
1.57k stars 562 forks source link

fix: `capabilities` property type doc #731

Closed stevebauman closed 1 year ago

stevebauman commented 2 years ago

The capabilities property is an array of string keys with bool values, instead of a string property as declared on the IncomingPhoneNumberList resource.

https://www.twilio.com/docs/phone-numbers/api/incomingphonenumber-resource#create-an-incomingphonenumber-resource

$phoneNumber = $twilio->incomingPhoneNumbers->read()[0];

// array:4 [
//   "fax" => false
//   "voice" => true
//   "sms" => true
//   "mms" => true
// ]
var_dump($phoneNumber->capabilities);
beebzz commented 2 years ago

Hi @stevebauman, thanks for the PR! This resource is autogenerated, unfortunately, but this issue has been added to our backlog to be prioritized for a future release (+1s will help move it further up the backlog).

stevebauman commented 2 years ago

Oh ok no worries! Thanks for the reply. 🙏

claudiachua commented 2 years ago

Update: We have this on our internal backlog (DI-2351)

isha689 commented 1 year ago

This is completed as part of PR#760

stevebauman commented 1 year ago

Thanks for fixing this! 🙏