fix-progressbar-start
lastMessagesLength and barCharOriginal should be reset if you want to use 2 or more Progress Bars in the same command flow.
This commit is contained in:
parent
8d29c64dcc
commit
e65723c000
@ -186,6 +186,8 @@ class ProgressHelper extends Helper
|
|||||||
$this->current = 0;
|
$this->current = 0;
|
||||||
$this->max = (int) $max;
|
$this->max = (int) $max;
|
||||||
$this->output = $output;
|
$this->output = $output;
|
||||||
|
$this->lastMessagesLength = 0;
|
||||||
|
$this->barCharOriginal = '';
|
||||||
|
|
||||||
if (null === $this->format) {
|
if (null === $this->format) {
|
||||||
switch ($output->getVerbosity()) {
|
switch ($output->getVerbosity()) {
|
||||||
|
Reference in New Issue
Block a user