Skip to content

Commit

Permalink
Use empty array if trace args are not set
Browse files Browse the repository at this point in the history
  • Loading branch information
trowski committed Mar 4, 2020
1 parent bcf2272 commit 5610e9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Sync/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function flattenThrowableBacktrace(\Throwable $exception): array

foreach ($trace as &$call) {
unset($call['object']);
$call['args'] = \array_map(__NAMESPACE__ . '\\flattenArgument', $call['args']);
$call['args'] = \array_map(__NAMESPACE__ . '\\flattenArgument', $call['args'] ?? []);
}

return $trace;
Expand Down

0 comments on commit 5610e9f

Please sign in to comment.