Skip to content

Commit

Permalink
fix a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
wisp-x committed Mar 12, 2022
1 parent 69209f7 commit 87f7c50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public static function formatSize(int|float $size): string
* @param int $precision 精度
* @return int
*/
public static function shortenNumber(int|string $n, int $precision = 1): int
public static function shortenNumber(int|string $n, int $precision = 1): int|string
{
if ($n < 1e+3) {
return number_format($n);
Expand Down

0 comments on commit 87f7c50

Please sign in to comment.