Skip to content

Commit

Permalink
Merge pull request #17 from CRRaD/patch-1
Browse files Browse the repository at this point in the history
Update ApiException.php
  • Loading branch information
mlanin authored Feb 18, 2021
2 parents 86aa2a8 + 51815b8 commit 91fa8d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ApiException.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public function toArray()
}

if (env('APP_DEBUG') && $this instanceof ShowsTrace) {
$return['trace'] = \Symfony\Component\ErrorHandler\Exception\FlattenException::create($e)->getTrace();
$return['trace'] = \Symfony\Component\ErrorHandler\Exception\FlattenException::createFromThrowable($e)->getTrace();
}

return $return;
Expand Down

0 comments on commit 91fa8d4

Please sign in to comment.