File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -86,14 +86,20 @@ public function hasHeader($name);
86
86
* NOTE: Not all header values may be appropriately represented using
87
87
* comma concatenation. For such headers, use getHeaderLines() instead
88
88
* and supply your own delimiter when concatenating.
89
+ *
90
+ * If the header did not appear in the message, this method should return
91
+ * a null value.
89
92
*
90
93
* @param string $name Case-insensitive header field name.
91
- * @return string
94
+ * @return string|null
92
95
*/
93
96
public function getHeader ($ name );
94
97
95
98
/**
96
99
* Retrieves a header by the given case-insensitive name as an array of strings.
100
+ *
101
+ * If the header did not appear in the message, this method should return an
102
+ * empty array.
97
103
*
98
104
* @param string $name Case-insensitive header field name.
99
105
* @return string[]
You can’t perform that action at this time.
0 commit comments