Skip to content

Commit ee9a83a

Browse files
SVillettefabpot
authored andcommitted
[HttpKernel] Fix passing null to \trim() method in LoggerDataCollector
1 parent 628f677 commit ee9a83a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)