8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54209bb commit 38343f4Copy full SHA for 38343f4
src/Symfony/Component/Console/Helper/ProgressBar.php
@@ -514,7 +514,7 @@ private static function initPlaceholderFormatters(): array
514
$display = str_repeat($bar->getBarCharacter(), $completeBars);
515
if ($completeBars < $bar->getBarWidth()) {
516
$emptyBars = $bar->getBarWidth() - $completeBars - Helper::strlenWithoutDecoration($output->getFormatter(), $bar-> 5672 getProgressCharacter());
517
- $display .= $bar->getProgressCharacter().str_repeat($bar->getEmptyBarCharacter(), $emptyBars);
+ $display .= $bar->getProgressCharacter().str_repeat($bar->getEmptyBarCharacter(), max($emptyBars,0));
518
}
519
520
return $display;
0 commit comments