Skip to content

Commit 5660e4d

Browse files
committed
fix(dx): corrected annotation of OpenApi\Model\Operation::addResponse()
Key can be status code `200`, etc as well.
1 parent 4aeb82e commit 5660e4d

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/OpenApi/Model/Operation.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,7 @@ public function __construct(private ?string $operationId = null, private ?array
2626
$this->extensionProperties = $extensionProperties;
2727
}
2828

29-
/**
30-
* @param string $status
31-
*/
32-
public function addResponse(Response $response, $status = 'default'): self
29+
public function addResponse(Response $response, int|string $status = 'default'): self
3330
{
3431
$this->responses[$status] = $response;
3532

0 commit comments

Comments
 (0)