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 committed Nov 22, 2019
1 parent a8a9e69 commit 42100f1
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 @@ -41,7 +41,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 @@ -59,7 +59,7 @@ public function onKernelResponse(FilterResponseEvent $event)
*/
protected function sendHeader($header, $content)
{
if (!$this->sendHeaders) {
if (!self::$sendHeaders) {
return;
}

Expand Down

0 comments on commit 42100f1

Please sign in to comment.