Skip to content

Commit

Permalink
Merge pull request #20 from evert/header-casing-tweak
Browse files Browse the repository at this point in the history
Changed PHP docblocks.
  • Loading branch information
Paul M. Jones committed Jan 28, 2015
2 parents d70356c + 8aac535 commit 5d725e6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/MessageInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ public function withProtocolVersion($version);
* }
* }
*
* While header names are not case-sensitive, getHeaders() will preserve the
* exact case in which headers were originally specified.
*
* @return array Returns an associative array of the message's headers. Each
* key MUST be a header name, and each value MUST be an array of strings.
*/
Expand Down Expand Up @@ -101,8 +104,8 @@ public function getHeaderLines($header);
* Create a new instance with the provided header, replacing any existing
* values of any headers with the same case-insensitive name.
*
* The header name is case-insensitive. The header values MUST be a string
* or an array of strings.
* While header names are case-insensitive, the casing of the header will
* be preserved by this function, and returned from getHeaders().
*
* This method MUST be implemented in such a way as to retain the
* immutability of the message, and MUST return a new instance that has the
Expand Down

0 comments on commit 5d725e6

Please sign in to comment.