Skip to content

Commit

Permalink
fix 'Invalid variable name' when we use space in pattern with trim (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Hebrahimzadeh authored Dec 31, 2023
1 parent d4a75d1 commit 3abc0ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Drivers/Farazsmspattern.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ protected function payload($recipient): array
continue;
}
$key_value = explode('=', $datum);
$input_data[$key_value[0]] = $key_value[1];
$input_data[trim($key_value[0])] = $key_value[1];
}

return [
Expand Down

0 comments on commit 3abc0ab

Please sign in to comment.