Skip to content

Commit ac75710

Browse files
committed
Merge branch '6.3' into 6.4
* 6.3: fix type of `$response->headers->set()`
2 parents 3be17d4 + bc94da2 commit ac75710

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
@@ -220,10 +220,10 @@ pages from a server.
220220

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

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

228228
Ideally this header should only be set during development and not for
229229
production. To do that, create an :doc:`event subscriber </event_dispatcher>`
@@ -258,7 +258,7 @@ event::
258258
}
259259

260260
$response = $event->getResponse();
261-
$response->headers->set('Symfony-Debug-Toolbar-Replace', 1);
261+
$response->headers->set('Symfony-Debug-Toolbar-Replace', '1');
262262
}
263263
}
264264

0 commit comments

Comments
 (0)