| @@ -1,6 +1,8 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | +declare(strict_types=1); | |
| 4 | + | |
| 3 | 5 | namespace Psr\Http\Message; |
| 4 | 6 | |
| 5 | 7 | /** |
| 6 | 8 | * Representation of an outgoing, server-side response. |
| @@ -48,9 +50,9 @@ | ||
| 48 | 50 | * use the defaults as suggested in the HTTP specification. |
| 49 | 51 | * @return static |
| 50 | 52 | * @throws \InvalidArgumentException For invalid status code arguments. |
| 51 | 53 | */ |
| 52 | - public function withStatus($code, $reasonPhrase = ''); | |
| 54 | + public function withStatus(int $code, string $reasonPhrase = ''); | |
| 53 | 55 | |
| 54 | 56 | /** |
| 55 | 57 | * Gets the response reason phrase associated with the status code. |
| 56 | 58 | * |