Skip to content

Commit d2be654

Browse files
hameesakhanatymic
andauthored
Consider "" value for TWILIO_DEBUG_TO as null (#122)
Co-authored-by: atymic <[email protected]>
1 parent 6db310b commit d2be654

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Twilio.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ protected function sendSmsMessage(TwilioSmsMessage $message, ?string $to): Messa
6464
{
6565
$debugTo = $this->config->getDebugTo();
6666

67-
if ($debugTo !== null) {
67+
if (!empty($debugTo)) {
6868
$to = $debugTo;
6969
}
7070

0 commit comments

Comments
 (0)