Skip to content

Commit 072e94c

Browse files
kalessilfabpot
authored andcommitted
SCA: minor code tweaks
1 parent 93d1c28 commit 072e94c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

DataCollector/MessengerDataCollector.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,7 @@ public function lateCollect()
6262
});
6363

6464
// Keep the messages clones only
65-
$this->data['messages'] = array_map(function (array $item): Data {
66-
return $item[0];
67-
}, $messages);
65+
$this->data['messages'] = array_column($messages, 0);
6866
}
6967

7068
/**

0 commit comments

Comments
 (0)