Skip to content

Commit fbe6c6a

Browse files
committed
minor #29745 SCA: minor code tweaks (kalessil)
This PR was squashed before being merged into the 4.1 branch (closes #29745). Discussion ---------- SCA: minor code tweaks | Q | A | ------------- | --- | Branch? | 4.1 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | n/a Eliminated a few excessive calls, tweaked query parameters sorting Commits ------- 8887f76b64 SCA: minor code tweaks
2 parents 719f720 + 1d41854 commit fbe6c6a

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)