Skip to content

Commit 18d72bf

Browse files
committed
Use more precise return type for MessageInterface::getHeaders
It is an associative array with a string key (header name).
1 parent efd67d1 commit 18d72bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MessageInterface.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function withProtocolVersion($version);
6161
* While header names are not case-sensitive, getHeaders() will preserve the
6262
* exact case in which headers were originally specified.
6363
*
64-
* @return string[][] Returns an associative array of the message's headers. Each
64+
* @return array<string, string[]> Returns an associative array of the message's headers. Each
6565
* key MUST be a header name, and each value MUST be an array of strings
6666
* for that header.
6767
*/

0 commit comments

Comments
 (0)