Skip to content

Commit

Permalink
added null coalescing operator for checking null value
Browse files Browse the repository at this point in the history
  • Loading branch information
Biswajit Mondal committed Oct 26, 2023
1 parent a53f95d commit 838f80d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Utopia/Messaging/Adapters/SMS/Termii.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,7 @@ protected function process(SMS $message): string
*/
private function getRequestBody(array $to, string $text, string $from = null): array
{
if (empty($from)) {
$from = '';
}
$from = $from ?? '';

// removing + from numbers if exists
$to = \array_map(
Expand Down

0 comments on commit 838f80d

Please sign in to comment.