Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 92e7718

Browse files
authored
Make ProgressBar::setMaxSteps public
This is useful in cases when target of tracking changes its size during progress advancement.
1 parent d79c528 commit 92e7718

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Console/Helper/ProgressBar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ private function setRealFormat(string $format)
362362
$this->formatLineCount = substr_count($this->format, "\n");
363363
}
364364

365-
private function setMaxSteps(int $max)
365+
public function setMaxSteps(int $max)
366366
{
367367
$this->max = max(0, $max);
368368
$this->stepWidth = $this->max ? Helper::strlen((string) $this->max) : 4;

0 commit comments

Comments
 (0)