We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e4cb244 + bea5e5e commit 42b2b24Copy full SHA for 42b2b24
src/Exception/ApiProblemHttpException.php
@@ -27,12 +27,12 @@ public function getApiProblem(): ApiProblemInterface
27
return $this->apiProblem;
28
}
29
30
- public function getStatusCode()
+ public function getStatusCode(): int
31
{
32
return parent::getStatusCode() > 0 ? parent::getStatusCode() : Response::HTTP_BAD_REQUEST;
33
34
35
- public function getHeaders()
+ public function getHeaders(): array
36
37
return ['Content-Type' => 'application/problem+json'];
38
0 commit comments