8000 Passing null to parameter #2 ($subject) of type string is deprecated · symfony/symfony@ca9b0c1 · GitHub
[go: up one dir, main page]

Skip to content

Commit ca9b0c1

Browse files
committed
Passing null to parameter #2 ($subject) of type string is deprecated
1 parent df81a1a commit ca9b0c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function onKernelResponse(ResponseEvent $event)
4040
return;
4141
}
4242

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

0 commit comments

Comments
 (0)
0