Skip to content

Commit

Permalink
https://github.com/mage2pro/core/issues/379
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Jun 5, 2024
1 parent 0295b55 commit de63767
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sentry/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,8 @@ private static function needSkipFrame(array $frame):bool {return ErrorHandler::c
*/
private function sanitize(array &$d):void {
foreach(['request', 'user', 'extra', ['contexts', 5]] as $k) {
list($k, $depth) = is_array($k) ? $k : [$k, 3];
# 2024-06-06 "Use the «Symmetric array destructuring» PHP 7.1 feature": https://github.com/mage2pro/core/issues/379
[$k, $depth] = is_array($k) ? $k : [$k, 3];
if (!empty($d[$k])) {
$d[$k] = $this->serializer->serialize($d[$k], $depth);
}
Expand Down

0 comments on commit de63767

Please sign in to comment.