Skip to content

Commit

Permalink
Update number_format_to_decimal.php
Browse files Browse the repository at this point in the history
  • Loading branch information
davidvandertuijn authored May 27, 2021
1 parent 0578afa commit c7215a1
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/number_format_to_decimal.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@
/**
* Number Format To Decimal.
*
* @param string $sValue
* @param string|null $sValue
*
* @return string $sDecimal
* @return mixed
*/
function number_format_to_decimal(string $sValue): string
function number_format_to_decimal(?string $sValue)
{
if (is_null($sValue)) {
return null;
}

$iCountCommaSeperators = 0;
$iCountDotSeperators = 0;

Expand Down

0 comments on commit c7215a1

Please sign in to comment.