Skip to content

Commit 3a059ad

Browse files
committed
remove duplication code exception
1 parent 6db55be commit 3a059ad

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/Laravel/Exception/ErrorHandler.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -194,10 +194,6 @@ private function getStatusCode(?HttpOperation $apiOperation, ?HttpOperation $err
194194
return $exception->getStatusCode();
195195
}
196196

197-
if ($exception instanceof SymfonyHttpExceptionInterface) {
198-
return $exception->getStatusCode();
199-
}
200-
201197
if ($exception instanceof RequestExceptionInterface || $exception instanceof InvalidUriVariableException) {
202198
return 400;
203199
}

0 commit comments

Comments
 (0)