Skip to content

Commit

Permalink
bug #34533 [Monolog Bridge] Fixed accessing static property as non st…
Browse files Browse the repository at this point in the history
…atic. (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.
  • Loading branch information
fabpot committed Nov 24, 2019
2 parents 0bd02bc + aa045d1 commit 3bd5fae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Symfony/Bridge/Monolog/Handler/ChromePhpHandler.php
Expand Up @@ -39,7 +39,7 @@ public function onKernelResponse(FilterResponseEvent $event)
}

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

return;
Expand All @@ -57,7 +57,7 @@ public function onKernelResponse(FilterResponseEvent $event)
*/
protected function sendHeader($header, $content)
{
if (!$this->sendHeaders) {
if (!self::$sendHeaders) {
return;
}

Expand Down

0 comments on commit 3bd5fae

Please sign in to comment.