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
-------
aa045d10b9
[Monolog Bridge] Fixed accessing static property as non static.
This commit is contained in:
commit
3bd5faeaf6
@ -39,7 +39,7 @@ class ChromePhpHandler extends BaseChromePhpHandler
|
||||
}
|
||||
|
||||
if (!preg_match(static::USER_AGENT_REGEX, $event->getRequest()->headers->get('User-Agent'))) {
|
||||
$this->sendHeaders = false;
|
||||
self::$sendHeaders = false;
|
||||
$this->headers = [];
|
||||
|
||||
return;
|
||||
@ -57,7 +57,7 @@ class ChromePhpHandler extends BaseChromePhpHandler
|
||||
*/
|
||||
protected function sendHeader($header, $content)
|
||||
{
|
||||
if (!$this->sendHeaders) {
|
||||
if (!self::$sendHeaders) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user