Skip to content

Commit 3a2d22e

Browse files
authored
Update HttpKernel.php
phpstan (0.11.19) level 5 Parameter #2 $values of method Symfony\Component\HttpFoundation\HeaderBag::set() expects array<string>|string, int given.
1 parent 0007333 commit 3a2d22e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

HttpKernel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function __construct(EventDispatcherInterface $dispatcher, ControllerReso
6161
*/
6262
public function handle(Request $request, int $type = HttpKernelInterface::MASTER_REQUEST, bool $catch = true)
6363
{
64-
$request->headers->set('X-Php-Ob-Level', ob_get_level());
64+
$request->headers->set('X-Php-Ob-Level', strval(ob_get_level()));
6565

6666
try {
6767
return $this->handleRaw($request, $type);

0 commit comments

Comments
 (0)