Skip to content

Commit 2c2fc33

Browse files
committed
fix: type error on issues #29
1 parent 527fa73 commit 2c2fc33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Component/Progress/SimpleBar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public static function gen(int $total, array $opts = []): Generator
7676
}
7777

7878
$current += $step;
79-
$percent = ceil(($current / $total) * 100);
79+
$percent = (int)ceil(($current / $total) * 100);
8080

8181
if ($percent >= 100) {
8282
$msg = $doneMsg ?: $msg;

0 commit comments

Comments
 (0)