Skip to content

Commit 3696e61

Browse files
Merge branch '3.1'
* 3.1: [Routing] Add missing options in docblock [VarDumper] Fix dumping continuations [PropertyInfo] Fix an error in PropertyInfoCacheExtractor [HttpFoundation] fixed Request::getContent() reusage bug [Form] Skip CSRF validation on form when POST max size is exceeded Use try-finally where it possible [DependencyInjection] ContainerBuilder: Remove obsolete definitions Enhance the phpDoc return types so IDEs can handle the configuration tree. fixes Remove 3.0 from branch suggestions for fixes in PR template [Process] Strengthen Windows pipe files opening (again...) [Cache] Handle unserialize() failures gracefully Fix #19531 [Form] DateType fails parsing when midnight is not a valid time
2 parents 9cd5b90 + 16236cd commit 3696e61

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

DataCollector/DumpDataCollector.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,9 +201,7 @@ public function getDumps($format, $maxDepthLimit = -1, $maxItemsPerDepth = -1)
201201

202202
foreach ($this->data as $dump) {
203203
$dumper->dump($dump['data']->withMaxDepth($maxDepthLimit)->withMaxItemsPerDepth($maxItemsPerDepth));
204-
205-
rewind($data);
206-
$dump['data'] = stream_get_contents($data);
204+
$dump['data'] = stream_get_contents($data, -1, 0);
207205
ftruncate($data, 0);
208206
rewind($data);
209207
$dumps[] = $dump;

0 commit comments

Comments
 (0)