Skip to content

Commit

Permalink
Use more precise type for MessageInterface::getHeaders
Browse files Browse the repository at this point in the history
It is an associative array with a string key (header name).
  • Loading branch information
jtojnar committed Mar 8, 2023
1 parent efd67d1 commit e1f0b31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MessageInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function withProtocolVersion($version);
* While header names are not case-sensitive, getHeaders() will preserve the
* exact case in which headers were originally specified.
*
* @return string[][] Returns an associative array of the message's headers. Each
* @return array<string, string[]> 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
* for that header.
*/
Expand Down

0 comments on commit e1f0b31

Please sign in to comment.