Skip to content

Commit dfcd9ab

Browse files
committed
Merge branch '6.4' into 7.0
* 6.4: fix type of `$response->headers->set()`
2 parents 0b51c59 + ac75710 commit dfcd9ab

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

profiler.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,10 +212,10 @@ pages from a server.
212212

213213
By default, the debug toolbar displays the information of the initial page load
214214
and doesn't refresh after each AJAX request. However, you can set the
215-
``Symfony-Debug-Toolbar-Replace`` header to a value of ``1`` in the response to
215+
``Symfony-Debug-Toolbar-Replace`` header to a value of ``'1'`` in the response to
216216
the AJAX request to force the refresh of the toolbar::
217217

218-
$response->headers->set('Symfony-Debug-Toolbar-Replace', 1);
218+
$response->headers->set('Symfony-Debug-Toolbar-Replace', '1');
219219

220220
Ideally this header should only be set during development and not for
221221
production. To do that, create an :doc:`event subscriber </event_dispatcher>`
@@ -250,7 +250,7 @@ event::
250250
}
251251

252252
$response = $event->getResponse();
253-
$response->headers->set('Symfony-Debug-Toolbar-Replace', 1);
253+
$response->headers->set('Symfony-Debug-Toolbar-Replace', '1');
254254
}
255255
}
256256

0 commit comments

Comments
 (0)