From d61d3c6559bd3ef244638813d08f3abd7f63290f Mon Sep 17 00:00:00 2001 From: Andreas Creten Date: Fri, 8 Mar 2024 14:29:27 +0100 Subject: [PATCH 1/2] Fix issue with statusCallbackEvent argument type --- src/Twilio/TwiML/Voice/Number.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Twilio/TwiML/Voice/Number.php b/src/Twilio/TwiML/Voice/Number.php index 3c4a77843b..8a20182f91 100644 --- a/src/Twilio/TwiML/Voice/Number.php +++ b/src/Twilio/TwiML/Voice/Number.php @@ -52,9 +52,10 @@ public function setMethod($method): self { /** * Add StatusCallbackEvent attribute. * - * @param string[] $statusCallbackEvent Events to call status callback + * @param string[]|string $statusCallbackEvent Events to call status callback */ public function setStatusCallbackEvent($statusCallbackEvent): self { + $statusCallbackEvent = is_array($statusCallbackEvent) ? implode(' ', $statusCallbackEvent) : $statusCallbackEvent; return $this->setAttribute('statusCallbackEvent', $statusCallbackEvent); } @@ -155,4 +156,4 @@ public function setMachineDetectionSpeechEndThreshold($machineDetectionSpeechEnd public function setMachineDetectionSilenceTimeout($machineDetectionSilenceTimeout): self { return $this->setAttribute('machineDetectionSilenceTimeout', $machineDetectionSilenceTimeout); } -} \ No newline at end of file +} From 627f0ea08259e42b5a54f3071172cb7c4062c0fe Mon Sep 17 00:00:00 2001 From: Andreas Creten Date: Fri, 8 Mar 2024 14:31:41 +0100 Subject: [PATCH 2/2] Remove line end of file