Updates from Review-2
This tag contains all updates since entering the second review of PSR-7. These include:
- Clarifications to
RequestInterface::withUri()specifying that changes MUST also update theHostheader unless the$preserverHostflag istrue. - Removal of the various
getHeader*()method overrides inRequestInterface, as they are irrelevant with the above change. - Added verbiage to the
RequestInterfaceclass-level docblock indicating that constructors SHOULD attempt to set theHostheader in order to ensure the message is valid on initialization. RequestInterface::getHeaderLine()MUST return a string (nullwas allowed previously, which leads to ambiguity of return value).ResponseInterface::getReasonPhrase()MUST return a string(nullwas allowed previously, which leads to ambiguity of return value).ResponseInterface::withStatus()now sets the default value of the$reasonPhraseparameter to an empty string (to correspond to the above change).UploadedFileInterface::move()was renamed tomoveTo(), and the argument renamed to$targetPath; this clarifies intent for the method.UriInterface::withPath()has clarifications in the docblock to indicate the four possible path types (empty, root path, relative path, domain-relative — or absolute — path).