Skip to content

Commit 6ba4f5a

Browse files
committed
Conflict Solved
2 parents 6116d42 + a547163 commit 6ba4f5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Traits/ApiErrorHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ trait ApiErrorHandler
99
{
1010
public function handleError($exception)
1111
{
12-
$exceptions = config("api-error-handler");
12+
$exceptions = config("api-error-handler") ?? [];
1313
$class = array_key_exists(get_class($exception),$exceptions) ? $exceptions[get_class($exception)] : DefaultException::class;
1414
$handler = new $class($exception);
1515
$handler->handleStatusCode();

0 commit comments

Comments
 (0)