Skip to content

Commit 1a4b4b6

Browse files
committed
minor #8895 Mention the new behavior of dump() which returns the passed value (javiereguiluz)
This PR was merged into the 3.4 branch. Discussion ---------- Mention the new behavior of dump() which returns the passed value This fixes #8459. Commits ------- 0e871db Mention the new behavior of dump() which returns the passed value
2 parents 8fab928 + 0e871db commit 1a4b4b6

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)