@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | * @return \Symfony\Component\HttpFoundation\Response |
73 | 73 | */ |
74 | 74 | protected static function processException(\Exception $ex, array $ex_cfg, |
75 | - int $fallback_http_code = HttpResponse::HTTP_INTERNAL_SERVER_ERROR) |
|
75 | + int $fallback_http_code = HttpResponse::HTTP_INTERNAL_SERVER_ERROR) |
|
76 | 76 | { |
77 | 77 | $api_code = $ex_cfg['api_code']; |
78 | 78 | $http_code = $ex_cfg['http_code'] ?? $fallback_http_code; |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | * @return HttpResponse |
142 | 142 | */ |
143 | 143 | protected function unauthenticated(/** @scrutinizer ignore-unused */ $request, |
144 | - AuthException $exception): HttpResponse |
|
144 | + AuthException $exception): HttpResponse |
|
145 | 145 | { |
146 | 146 | $cfg = self::getExceptionHandlerConfig(); |
147 | 147 | |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | * @return HttpResponse |
163 | 163 | */ |
164 | 164 | protected static function error(Exception $ex, |
165 | - int $api_code, int $http_code = null, string $error_message = null): HttpResponse |
|
165 | + int $api_code, int $http_code = null, string $error_message = null): HttpResponse |
|
166 | 166 | { |
167 | 167 | $ex_http_code = ($ex instanceof HttpException) ? $ex->getStatusCode() : $ex->getCode(); |
168 | 168 | $http_code = $http_code ?? $ex_http_code; |