From 046e0029a9761d58574e463ad3494ae73249b05e Mon Sep 17 00:00:00 2001 From: Flug Date: Thu, 11 Sep 2025 10:46:56 +0200 Subject: [PATCH] remove duplicate code exception --- Exception/ErrorHandler.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Exception/ErrorHandler.php b/Exception/ErrorHandler.php index a97f7e1..a0796b9 100644 --- a/Exception/ErrorHandler.php +++ b/Exception/ErrorHandler.php @@ -194,10 +194,6 @@ private function getStatusCode(?HttpOperation $apiOperation, ?HttpOperation $err return $exception->getStatusCode(); } - if ($exception instanceof SymfonyHttpExceptionInterface) { - return $exception->getStatusCode(); - } - if ($exception instanceof RequestExceptionInterface || $exception instanceof InvalidUriVariableException) { return 400; }