Skip to content

Commit 35fd871

Browse files
committed
Fix failing test
- use `setCustomStatusCode()` instead of `setStatusCode()`
1 parent c34a6ee commit 35fd871

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ApiProblemResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class ApiProblemResponse extends Response
3131
public function __construct(ApiProblem $apiProblem)
3232
{
3333
$this->apiProblem = $apiProblem;
34-
$this->setStatusCode($apiProblem->status);
34+
$this->setCustomStatusCode($apiProblem->status);
3535
$this->setReasonPhrase($apiProblem->title);
3636

3737
if (defined('JSON_UNESCAPED_SLASHES')) {

0 commit comments

Comments
 (0)