Skip to content

Commit da457d9

Browse files
authored
Don't access uninitialized typed property ChromePhpHandler::$response
Fixes symfony#44513
1 parent 4b16533 commit da457d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bridge/Monolog/Handler/ChromePhpHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ protected function sendHeader($header, $content): void
5959
return;
6060
}
6161

62-
if ($this->response) {
62+
if (isset($this->response)) {
6363
$this->response->headers->set($header, $content);
6464
} else {
6565
$this->headers[$header] = $content;

0 commit comments

Comments
 (0)