Skip to content

Commit a53e608

Browse files
committed
[VarDumper] little optim
1 parent 7681e39 commit a53e608

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

components/var_dumper/advanced.rst

Lines changed: 1 addition & 2 deletions
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)