Update HttpKernel.php

This commit is contained in:
Nardberjean 2019-11-17 11:11:27 -05:00 committed by Fabien Potencier
parent 829ced841c
commit 7b7f966711
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ class HttpKernel implements HttpKernelInterface, TerminableInterface
*/ */
public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true) public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
{ {
$request->headers->set('X-Php-Ob-Level', ob_get_level()); $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
try { try {
return $this->handleRaw($request, $type); return $this->handleRaw($request, $type);