Skip to content

Commit

Permalink
Update number2chinese.php Fix#7 php8 bug
Browse files Browse the repository at this point in the history
php8 bug
  • Loading branch information
wilon authored Sep 4, 2023
1 parent c99d227 commit e6f5a80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion number2chinese.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ function number2chinese($number, $isRmb = false)

// 小数部分拼接
$decimalRes = '';
$count = strlen($decimal);
$count = strlen($decimal ?? '');
if ($decimal === null) {
$decimalRes = $isRmb ? '' : '';
} else if ($decimal === '0') {
Expand Down

0 comments on commit e6f5a80

Please sign in to comment.