Skip to content

Commit

Permalink
Check if lateCollect exists
Browse files Browse the repository at this point in the history
  • Loading branch information
dunglas committed Nov 15, 2018
1 parent 07be011 commit cc59787
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Tests/ProfilerTest.php
Expand Up @@ -73,7 +73,9 @@ public function testRender()
// This is only needed for WebProfilerBundle=3.2, remove when support for it is dropped
$requestCollector = new RequestDataCollector();
$requestCollector->collect($request, $response);
$requestCollector->lateCollect();
if (method_exists($requestCollector, 'lateCollect')) {
$requestCollector->lateCollect();
}
$profile->addCollector($requestCollector);

$output = $this->twig->render('db.html.twig', [
Expand Down

0 comments on commit cc59787

Please sign in to comment.