Skip to content

Commit 046e002

Browse files
committed
remove duplicate code exception
1 parent 3138985 commit 046e002

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

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)