Skip to content

Commit a880fe4

Browse files
lyrixxwouterj
authored andcommitted
[VarDumper] little optim
1 parent 5880f38 commit a880fe4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

components/var_dumper/advanced.rst

+1-2
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,7 @@ Another option for doing the same could be::
145145
$output = fopen('php://memory', 'r+b');
146146

147147
$dumper->dump($cloner->cloneVar($variable), $output);
148-
rewind($output);
149-
$output = stream_get_contents($output);
148+
$output = stream_get_contents($output, -1, 0);
150149

151150
// $output is now populated with the dump representation of $variable
152151

0 commit comments

Comments
 (0)