Skip to content

Commit f3ef9dc

Browse files
committed
The name of the placeholder must not be encapsulated in %
1 parent fb0e79c commit f3ef9dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/console/helpers/progressbar.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ create your own. Let's see how you can create a ``remaining_steps`` placeholder
290290
that displays the number of remaining steps::
291291

292292
ProgressBar::setPlaceholderFormatterDefinition(
293-
'%remaining_steps%',
293+
'remaining_steps',
294294
function (ProgressBar $bar, OutputInterface $output) {
295295
return $bar->getMaxSteps() - $bar->getStep();
296296
}

0 commit comments

Comments
 (0)