Skip to content

Commit 0eed4e6

Browse files
committed
Remove variable
1 parent 82fe286 commit 0eed4e6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

components/console/helpers/formatterhelper.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,10 @@ Sometimes you want to format seconds to time. This is possible with the
128128
The first argument is the seconds to format and the second argument is the
129129
precision (default ``1``) of the result::
130130

131-
$timeString = $formatter->truncate(42); // 42 secs
132-
$timeString = $formatter->truncate(125); // 2 mins
133-
$timeString = $formatter->truncate(125, 2); // 2 mins, 5 secs
134-
$timeString = $formatter->truncate(172799, 4); // 1 day, 23 hrs, 59 mins, 59 secs
131+
$formatter->truncate(42); // 42 secs
132+
$formatter->truncate(125); // 2 mins
133+
$formatter->truncate(125, 2); // 2 mins, 5 secs
134+
$formatter->truncate(172799, 4); // 1 day, 23 hrs, 59 mins, 59 secs
135135

136136
.. versionadded:: 6.4
137137
The support for exact times were introduced in Symfony 6.4.

0 commit comments

Comments
 (0)