Skip to content

Commit dec7d87

Browse files
committed
fix str_repeat error
reported in Laravel-Backpack/devtools-issues#50
1 parent 9e460ac commit dec7d87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/Console/Commands/Traits/PrettyCommandOutput.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ public function progressBlock(string $text, string $progress = 'running', string
189189

190190
$this->output->write(sprintf(
191191
" $text <fg=gray>%s</> <fg=$color>%s</>",
192-
str_repeat('.', ($dotLength < 0) ? 1 : $dotLength),
192+
str_repeat('.', ($dotLength < 1) ? 1 : $dotLength),
193193
strtoupper($progress)
194194
));
195195
}

0 commit comments

Comments
 (0)