8000 bug #44514 Don't access uninitialized typed property ChromePhpHandler… · symfony/symfony@e4cfa82 · GitHub
[go: up one dir, main page]

Skip to content

Commit e4cfa82

Browse files
committed
bug #44514 Don't access uninitialized typed property ChromePhpHandler::$response (Philipp91)
This PR was merged into the 6.0 branch. Discussion ---------- Don't access uninitialized typed property ChromePhpHandler::$response Fixes #44513 | Q | A | ------------- | --- | Branch? | 6.0 | Bug fix? | yes | Tickets | Fix #44513 | License | MIT Commits ------- da457d9 Don't access uninitialized typed property ChromePhpHandler::$response
2 parents 4b16533 + da457d9 commit e4cfa82

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)
0