Skip to content

Commit 42b2b24

Browse files
authored
Merge pull request #17 from AnneSmids/master
Compile error with symfony 6.0
2 parents e4cb244 + bea5e5e commit 42b2b24

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Exception/ApiProblemHttpException.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ public function getApiProblem(): ApiProblemInterface
2727
return $this->apiProblem;
2828
}
2929

30-
public function getStatusCode()
30+
public function getStatusCode(): int
3131
{
3232
return parent::getStatusCode() > 0 ? parent::getStatusCode() : Response::HTTP_BAD_REQUEST;
3333
}
3434

35-
public function getHeaders()
35+
public function getHeaders(): array
3636
{
3737
return ['Content-Type' => 'application/problem+json'];
3838
}

0 commit comments

Comments
 (0)