Skip to content

Commit 097fb65

Browse files
committed
remove support for "auto"
1 parent 50a74fb commit 097fb65

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

components/console/helpers/table.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ You can add a table separator anywhere in the output by passing an instance of
6868
6969
The width of the columns are automatically set using the width of their contents by default. You can change this behavior via :method:`Symfony\\Component\\Console\\Helper\\Table::setColumnWidths`::
7070

71-
// Sets the left column to 10 characters, the middle to auto and the right to 30 characters.
72-
// The left column will effectively be 13 characters, as the columns content don't fit 10.
73-
$table->setColumnWidths(array(10, 'auto', 30));
71+
// Sets the left column to 10 characters, the middle to 0, and the right to 30 characters.
72+
// The left two columns will effectively be 13 and 24 characters, as the columns' content don't fit within the set values.
73+
$table->setColumnWidths(array(10, 0, 30));
7474
$table->render();
7575
7676
This code results in:

0 commit comments

Comments
 (0)