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

[HttpKernel] Deprecation of using null on trim() method in LoggerDataCollector #47235

Copy link
Copy link
Closed
@SVillette

Description

@SVillette
Issue body actions

Symfony version(s) affected

">= 5.4"

Description

The bug is a deprecation that is triggered because the usage of a null argument to \trim() method in \Symfony\Component\HttpKernel\DataCollector\LoggerDataCollector. (L147)

This bug appears in dev environment because I added a monolog handler that logs every deprecation in a file.

How to reproduce

I created a reproducer that explain step by step how to reproduce this bug and what is the cause.

Possible Solution

This bug can be fixed in vendor/symfony/http-kernel/DataCollector/LoggerDataCollector.php:147 by checking if $log['channel'] is not null before using the \trim() method.

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.