Skip to content

Commit

Permalink
typos in the var-dumper component
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas authored and weaverryan committed Nov 13, 2014
1 parent 17c6cac commit a79196a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions components/var_dumper/advanced.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ You can change the behavior of this function by calling
Calls to ``dump()`` will then be forwarded to ``$callable``.

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

use Symfony\Component\VarDumper\VarDumper;
Expand Down Expand Up @@ -41,7 +41,7 @@ object this way::

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

Expand Down
16 changes: 8 additions & 8 deletions components/var_dumper/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,9 @@ then its dump representation::
.. code-block:: php
$var = new \ErrorException(
"For some objects, properties have special values
that are best represented as constants, like
`severity` below. Hovering displays the value (`2`).",
"For some objects, properties have special values\n"
."that are best represented as constants, like\n"
."`severity` below. Hovering displays the value (`2`).\n",
0,
E_WARNING
);
Expand Down Expand Up @@ -227,11 +227,11 @@ then its dump representation::
.. code-block:: php
$var = new AcmeController(
"When a dump goes over its maximum items limit,
or when some special objects are encountered,
children can be replaced by an ellipsis and
optionnally followed by a number that says how
many have been removed; `9` in this case."
"When a dump goes over its maximum items limit,\n"
."or when some special objects are encountered,\n"
."children can be replaced by an ellipsis and\n"
."optionnally followed by a number that says how\n"
."many have been removed; `9` in this case.\n"
);
dump($var);
Expand Down

0 comments on commit a79196a

Please sign in to comment.