Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b9df01e

Browse files
committed
minor #34422 Update HttpKernel.php (Nardberjean)
This PR was squashed before being merged into the 3.4 branch (closes #34422). Discussion ---------- Update HttpKernel.php phpstan-symfony (0.11.6) level 5 Parameter #2 $values of method Symfony\Component\HttpFoundation\HeaderBag::set() expects array|string, int given. | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #... <!-- prefix each issue number with "Fix #", if any --> | License | MIT | Doc PR | Commits ------- 7b7f966 Update HttpKernel.php
2 parents 829ced8 + 7b7f966 commit b9df01e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpKernel/HttpKernel.php

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

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

0 commit comments

Comments
 (0)