8000 bug #34533 [Monolog Bridge] Fixed accessing static property as non st… · symfony/symfony@3bd5fae · GitHub
[go: up one dir, main page]

Skip to content

Commit 3bd5fae

Browse files
committed
bug #34533 [Monolog Bridge] Fixed accessing static property as non static. (Sander-Toonen)
This PR was submitted for the 4.4 branch but it was merged into the 3.4 branch instead (closes #34533). Discussion ---------- [Monolog Bridge] Fixed accessing static property as non static. | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #34505 | License | MIT | Doc PR | N/A Commits ------- aa045d1 [Monolog Bridge] Fixed accessing static property as non static.
2 parents 0bd02bc + aa045d1 commit 3bd5fae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function onKernelResponse(FilterResponseEvent $event)
3939
}
4040

4141
if (!preg_match(static::USER_AGENT_REGEX, $event->getRequest()->headers->get('User-Agent'))) {
42-
$this->sendHeaders = false;
42+
self::$sendHeaders = false;
4343
$this->headers = [];
4444

4545
return;
@@ -57,7 +57,7 @@ public function onKernelResponse(FilterResponseEvent $event)
5757
*/
5858
protected function sendHeader($header, $content)
5959
{
60-
if (!$this->sendHeaders) {
60+
if (!self::$sendHeaders) {
6161
return;
6262
}
6363

0 commit comments

Comments
 (0)
0