Skip to content

Commit 0e871db

Browse files
committed
Mention the new behavior of dump() which returns the passed value
1 parent 2ed36f3 commit 0e871db

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

components/var_dumper.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ For example::
5050

5151
dump($someVar);
5252

53+
// dump() returns the passed value, so you can dump an object and keep using it
54+
dump($someObject)->someMethod();
55+
5356
By default, the output format and destination are selected based on your
5457
current PHP SAPI:
5558

0 commit comments

Comments
 (0)