Currently, this library uses the following request methods:
hasHeader
getHeader
withAddedHeader
getUri
getMethod
The first three are defined as part of Psr\Http\Message\MessageInterface, but the last two methods are defined as part of Psr\Http\Message\RequestInterface. So, this PR updates the various phpDoc statements to reference RequestInterface instead.
It also removes the type hinting from method signatures for the PSR-7 interfaces. We use such a small subset of the PSR-7 spec, that enforcing that anything passed into these methods matches these interfaces seems like overkill and makes writing code that integrates with this library a pain.
Currently, this library uses the following request methods:
hasHeader
getHeader
withAddedHeader
getUri
getMethod
The first three are defined as part of
Psr\Http\Message\MessageInterface
, but the last two methods are defined as part ofPsr\Http\Message\RequestInterface
. So, this PR updates the various phpDoc statements to referenceRequestInterface
instead.It also removes the type hinting from method signatures for the PSR-7 interfaces. We use such a small subset of the PSR-7 spec, that enforcing that anything passed into these methods matches these interfaces seems like overkill and makes writing code that integrates with this library a pain.