Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[MonologBridge] FirePHPHandler::onKernelResponse throws PHP 8.1 deprecation when no user agent is set #49392

Copy link
Copy link
Closed
@simonberger

Description

@simonberger
Issue body actions

Symfony version(s) affected

5.4.20 and above

Description

When no user agent is set FirePHPHandler::onKernelResponse throws

Deprecated: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated

in PHP 8.1 and above

https://github.com/symfony/symfony/blob/5.4/src/Symfony/Bridge/Monolog/Handler/FirePHPHandler.php#L44

How to reproduce

I have no reproducer but it is an obvious potential problem because HeaderBag::get is allowed to return null.

Possible Solution

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.