From 5413984eb5d12b355e106b5aabbb0e5568a572a2 Mon Sep 17 00:00:00 2001 From: minilan677-netizen <321019851+minilan677-netizen@users.noreply.github.com> Date: Sat, 21 Nov 2026 07:15:13 +0600 Subject: [PATCH] docs: fix typo in Response status-code examples ("can used") The README example and the Response docblocks for the Response::STATUS_* constants were missing "be" ("can used as"). No other changes. --- README.md | 2 +- src/Message/Response.php | 2 +- src/Message/Response.v1.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7761a245..cdee9381 100644 --- a/README.md +++ b/README.md @@ -2444,7 +2444,7 @@ On top of this, this class implements the [PSR-7 Message Util `StatusCodeInterface`](https://github.com/php-fig/http-message-util/blob/master/src/StatusCodeInterface.php) which means that most common HTTP status codes are available as class constants with the `STATUS_*` prefix. For instance, the `200 OK` and -`404 Not Found` status codes can used as `Response::STATUS_OK` and +`404 Not Found` status codes can be used as `Response::STATUS_OK` and `Response::STATUS_NOT_FOUND` respectively. > Internally, this implementation builds on top of a base class which is diff --git a/src/Message/Response.php b/src/Message/Response.php index 0ce55bca..8ad47c60 100644 --- a/src/Message/Response.php +++ b/src/Message/Response.php @@ -38,7 +38,7 @@ * [PSR-7 Message Util `StatusCodeInterface`](https://github.com/php-fig/http-message-util/blob/master/src/StatusCodeInterface.php) * which means that most common HTTP status codes are available as class * constants with the `STATUS_*` prefix. For instance, the `200 OK` and - * `404 Not Found` status codes can used as `Response::STATUS_OK` and + * `404 Not Found` status codes can be used as `Response::STATUS_OK` and * `Response::STATUS_NOT_FOUND` respectively. * * > Internally, this implementation builds on top a base class which is diff --git a/src/Message/Response.v1.php b/src/Message/Response.v1.php index 175f4e93..293a4ea0 100644 --- a/src/Message/Response.v1.php +++ b/src/Message/Response.v1.php @@ -32,7 +32,7 @@ * [PSR-7 Message Util `StatusCodeInterface`](https://github.com/php-fig/http-message-util/blob/master/src/StatusCodeInterface.php) * which means that most common HTTP status codes are available as class * constants with the `STATUS_*` prefix. For instance, the `200 OK` and - * `404 Not Found` status codes can used as `Response::STATUS_OK` and + * `404 Not Found` status codes can be used as `Response::STATUS_OK` and * `Response::STATUS_NOT_FOUND` respectively. * * > Internally, this implementation builds on top a base class which is