Skip to content

Commit

Permalink
Fix bug in dial action
Browse files Browse the repository at this point in the history
The dial action should take an array of phone numbers and convert to a string.
Previously, it acted as though the phone numbers is a single string instead of an array of strings.
  • Loading branch information
stephenafamo authored Sep 13, 2018
1 parent 77cbabb commit ad7606c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Voice.php
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ protected function buildDial($options)
if (!isset($options['phoneNumbers'])) {
return $this->error('Please specifiy at least one number to dial');
}
$phoneNumbers = $options['phoneNumbers'];
$phoneNumbers = implode(", ", $options["phoneNumbers"]);

// Check if ringback tone is set
if (isset($options['ringbackTone'])) {
Expand Down Expand Up @@ -478,4 +478,4 @@ private function isValidURL($url)
}
return !filter_var($url, FILTER_VALIDATE_URL) === false;
}
}
}

0 comments on commit ad7606c

Please sign in to comment.