Skip to content

Commit a18ef8d

Browse files
authored
A method call is reversed
The order of the methods is reversed. The method "advance()" must be called after the "setMessage()".
1 parent 858ddc0 commit a18ef8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/console/helpers/progressbar.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,8 +362,8 @@ placeholder before displaying the progress bar::
362362
$progressBar->start();
363363
// 0/100 -- Start
364364

365-
$progressBar->advance();
366365
$progressBar->setMessage('Task is in progress...');
366+
$progressBar->advance();
367367
// 1/100 -- Task is in progress...
368368

369369
Messages can be combined with custom placeholders too. In this example, the

0 commit comments

Comments
 (0)