Skip to content

Commit ca6b46d

Browse files
authored
Merge pull request #6695 from MGatner/message-interface-inheritence
fix: MessageInterface inheritance
2 parents 1bfca2b + 7cee85f commit ca6b46d

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

system/HTTP/Request.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
/**
1717
* Representation of an HTTP request.
1818
*/
19-
class Request extends Message implements MessageInterface, RequestInterface
19+
class Request extends Message implements RequestInterface
2020
{
2121
use RequestTrait;
2222

system/HTTP/RequestInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
/**
1515
* Expected behavior of an HTTP request
1616
*/
17-
interface RequestInterface
17+
interface RequestInterface extends MessageInterface
1818
{
1919
/**
2020
* Gets the user's IP address.

system/HTTP/Response.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
* - Headers
3030
* - Message body
3131
*/
32-
class Response extends Message implements MessageInterface, ResponseInterface
32+
class Response extends Message implements ResponseInterface
3333
{
3434
use ResponseTrait;
3535

user_guide_src/source/changelogs/v4.3.0.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ Interface Changes
5454
=================
5555

5656
- Added missing ``getBody()``, ``hasHeader()`` and ``getHeaderLine()`` method in ``MessageInterface``.
57+
- Now ``RequestInterface`` extends ``MessageInterface``.
5758
- Now ``ResponseInterface`` extends ``MessageInterface``.
5859
- Added missing ``ResponseInterface::getCSP()`` (and ``Response::getCSP()``), ``ResponseInterface::getReasonPhrase()`` and ``ResponseInterface::getCookieStore()`` methods.
5960

0 commit comments

Comments
 (0)