8000 [HttpKernel] Fix passing `null` to `\trim()` method in LoggerDataColl… · symfony/symfony@b2fea03 · GitHub
[go: up one dir, main page]

Skip to content

Commit b2fea03

Browse files
SVillettefabpot
authored andcommitted
[HttpKernel] Fix passing null to \trim() method in LoggerDataCollector
1 parent 09b8854 commit b2fea03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpKernel/DataCollector/LoggerDataCollector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public function getFilters()
144144

145145
$allChannels = [];
146146
foreach ($this->getProcessedLogs() as $log) {
147-
if ('' === trim($log['channel'])) {
147+
if ('' === trim($log['channel'] ?? '')) {
148148
continue;
149149
}
150150

0 commit comments

Comments
 (0)
0