Skip to content

Commit

Permalink
[Monolog Bridge] Fixed accessing static property as non static.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sander-Toonen authored and fabpot committed Nov 24, 2019
1 parent 0bd02bc commit aa045d1
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 aa045d1

Please sign in to comment.