You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We've been instructed by your support that the XML attribute (and all other boolean attributes on TwiML verbs) should be output in XML content as "true" and "false", not as 1 and 0, as your PHP API suggests inside of its doc blocks when using the suggested bool types:
Code Snippet
This behaviour occurs when you pass a PHP boolean into your PHP API in any of the verb functions:
Can you please confirm whether this is actually the case whether or not this matters on your backend? If so, these doc blocks should all be adjusted, or have the boolean values be casted to raw strings automatically prior to being output in the XML.
The text was updated successfully, but these errors were encountered:
Issue Summary
We've been instructed by your support that the XML attribute (and all other boolean attributes on TwiML verbs) should be output in XML content as
"true"
and"false"
, not as1
and0
, as your PHP API suggests inside of its doc blocks when using the suggestedbool
types:Code Snippet
This behaviour occurs when you pass a PHP boolean into your PHP API in any of the verb functions:
twilio-php/src/Twilio/TwiML/Voice/Dial.php
Lines 202 to 210 in 793917c
Output:
Technical details:
Can you please confirm whether this is actually the case whether or not this matters on your backend? If so, these doc blocks should all be adjusted, or have the boolean values be casted to raw strings automatically prior to being output in the XML.
The text was updated successfully, but these errors were encountered: