You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looking at the PSR-7 definition for RequestInterface, neither getMethod or getUri may return anything but a string and UriInterface respectively. My gut feeling is that the documentation should then be considered invalid.
The text was updated successfully, but these errors were encountered:
According to https://github.com/guzzle/psr7/blob/master/src/Request.php#L28-L29 the
Request
class can be created usingHowever, the UriInterface validation will cause that to throw an
InvalidArgumentException
. See https://github.com/guzzle/psr7/blob/master/src/Request.php#L43-L49Looking at the PSR-7 definition for
RequestInterface
, neithergetMethod
orgetUri
may return anything but astring
andUriInterface
respectively. My gut feeling is that the documentation should then be considered invalid.The text was updated successfully, but these errors were encountered: