Closed
Description
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