Skip to content

Commit 67adf52

Browse files
committed
fix: fix phpstan
1 parent d44cbe9 commit 67adf52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/support/src/Number.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ protected static function summarize(float|int $number, int $precision = 0, ?int
173173
$displayExponent = $numberExponent - ($numberExponent % 3);
174174
$number /= pow(10, $displayExponent);
175175

176-
return trim(sprintf('%s%s', static::format($number, $precision, $maxPrecision), $units[$displayExponent] ?? ''));
176+
return trim(sprintf('%s%s', static::format($number, $precision, $maxPrecision), $units[(string) $displayExponent] ?? ''));
177177
}
178178

179179
/**

0 commit comments

Comments
 (0)