8000 [#4243] Tweaks to the new var-dumper component · dunglas/symfony-docs@a0ea52c · GitHub
[go: up one dir, main page]

Skip to content

Commit a0ea52c

Browse files
weaverryandunglas
authored andcommitted
[symfony#4243] Tweaks to the new var-dumper component
1 parent 921f3cd commit a0ea52c

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

components/var_dumper/advanced.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ You can change the behavior of this function by calling
1212
Calls to ``dump()`` will then be forwarded to ``$callable``.
1313

1414
By adding a handler, you can customize the `Cloners`_, `Dumpers`_ and `Casters`_
15-
as explained below. A simple implementation of a handler function might look
15+
explained below. A simple implementation of a handler function might look
1616
like this::
1717

1818
use Symfony\Component\VarDumper\VarDumper;
@@ -41,7 +41,7 @@ object this way::
4141

4242
$cloner = new VarCloner();
4343
$data = $cloner->cloneVar($myVar);
44-
// this is commonly then passed to the dumper
44+
// this is commonly then passed to the dumpe
4545
// see the example at the top of this page
4646
// $dumper->dump($data);
4747

components/var_dumper/introduction.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -193,9 +193,9 @@ then its dump representation::
193193
.. code-block:: php
194194
195195
$var = new \ErrorException(
196-
"For some objects, properties have special values\n"
197-
."that are best represented as constants, like\n"
198-
."`severity` below. Hovering displays the value (`2`).\n",
196+
"For some objects, properties have special values
197+
that are best represented as constants, like
198+
`severity` below. Hovering displays the value (`2`).",
199199
0,
200200
E_WARNING
201201
);
@@ -229,11 +229,11 @@ then its dump representation::
229229
.. code-block:: php
230230
231231
$var = new AcmeController(
232-
"When a dump goes over its maximum items limit,\n"
233-
."or when some special objects are encountered,\n"
234-
."children can be replaced by an ellipsis and\n"
235-
."optionally followed by a number that says how\n"
236-
."many have been removed; `9` in this case.\n"
232+
"When a dump goes over its maximum items limit,
233+
or when some special objects are encountered,
234+
children can be replaced by an ellipsis and
235+
optionnally followed by a number that says how
236+
many have been removed; `9` in this case."
237237
);
238238
dump($var);
239239

0 commit comments

Comments
 (0)
0