Skip to content

Commit a79196a

Browse files
nicolas-grekasweaverryan
authored andcommitted
typos in the var-dumper component
1 parent 17c6cac commit a79196a

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

components/var_dumper/advanced.rst

+2-2
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-
explained below. A simple implementation of a handler function might look
15+
as 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 dumpe
44+
// this is commonly then passed to the dumper
4545
// see the example at the top of this page
4646
// $dumper->dump($data);
4747

components/var_dumper/introduction.rst

+8-8
Original file line numberDiff line numberDiff line change
@@ -191,9 +191,9 @@ then its dump representation::
191191
.. code-block:: php
192192
193193
$var = new \ErrorException(
194-
"For some objects, properties have special values
195-
that are best represented as constants, like
196-
`severity` below. Hovering displays the value (`2`).",
194+
"For some objects, properties have special values\n"
195+
."that are best represented as constants, like\n"
196+
."`severity` below. Hovering displays the value (`2`).\n",
197197
0,
198198
E_WARNING
199199
);
@@ -227,11 +227,11 @@ then its dump representation::
227227
.. code-block:: php
228228
229229
$var = new AcmeController(
230-
"When a dump goes over its maximum items limit,
231-
or when some special objects are encountered,
232-
children can be replaced by an ellipsis and
233-
optionnally followed by a number that says how
234-
many have been removed; `9` in this case."
230+
"When a dump goes over its maximum items limit,\n"
231+
."or when some special objects are encountered,\n"
232+
."children can be replaced by an ellipsis and\n"
233+
."optionnally followed by a number that says how\n"
234+
."many have been removed; `9` in this case.\n"
235235
);
236236
dump($var);
237237

0 commit comments

Comments
 (0)