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);
8686 * NOTE: Not all header values may be appropriately represented using
8787 * comma concatenation. For such headers, use getHeaderLines() instead
8888 * 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.
8992 *
9093 * @param string $name Case-insensitive header field name.
91- * @return string
94+ * @return string|null
9295 */
9396 public function getHeader ($ name );
9497
9598 /**
9699 * 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.
97103 *
98104 * @param string $name Case-insensitive header field name.
99105 * @return string[]
You can’t perform that action at this time.
0 commit comments