Skip to content

Commit

Permalink
Default args to an empty array (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
sixlive committed Sep 13, 2019
1 parent da7a3b0 commit 2615ab9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BacktraceFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ private function formatBacktrace(array $backtrace) : array

return array_merge($context, [
'method' => $frame['function'] ?? null,
'args' => $this->parseArgs($frame['args']),
'args' => $this->parseArgs($frame['args'] ?? []),
'class' => $frame['class'] ?? null,
'type' => $frame['type'] ?? null,
]);
Expand Down

0 comments on commit 2615ab9

Please sign in to comment.