From 0e871dbba8c789f9363bec4b7e9f47404c67092f Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Sun, 17 Dec 2017 12:10:58 +0100 Subject: [PATCH] Mention the new behavior of dump() which returns the passed value --- components/var_dumper.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/var_dumper.rst b/components/var_dumper.rst index 189beb980c6..6f7b1a16341 100644 --- a/components/var_dumper.rst +++ b/components/var_dumper.rst @@ -50,6 +50,9 @@ For example:: dump($someVar); + // dump() returns the passed value, so you can dump an object and keep using it + dump($someObject)->someMethod(); + By default, the output format and destination are selected based on your current PHP SAPI: