Skip to content

Commit 159fedc

Browse files
committed
[HttpKernel] Fix issue when resetting DumpDataCollector
1 parent 76d356f commit 159fedc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Symfony/Component/HttpKernel/DataCollector/DumpDataCollector.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,9 @@ public function collect(Request $request, Response $response, \Exception $except
166166

167167
public function reset()
168168
{
169-
$this->stopwatch->reset();
169+
if ($this->stopwatch) {
170+
$this->stopwatch->reset();
171+
}
170172
$this->data = array();
171173
$this->dataCount = 0;
172174
$this->isCollected = false;

0 commit comments

Comments
 (0)