diff --git a/src/ApiException.php b/src/ApiException.php index 247a5dc..7e403d4 100644 --- a/src/ApiException.php +++ b/src/ApiException.php @@ -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;