@@ -28,15 +28,23 @@ class Header
2828 /**
2929 * The value of the header. May have more than one
3030 * value. If so, will be an array of strings.
31+ * E.g.,
32+ * [
33+ * 'foo',
34+ * [
35+ * 'bar' => 'fizz',
36+ * ],
37+ * 'baz' => 'buzz',
38+ * ]
3139 *
32- * @var array<array<string>|string>|string
40+ * @var array<int|string, array<string, string>|string>|string
3341 */
3442 protected $ value ;
3543
3644 /**
3745 * Header constructor. name is mandatory, if a value is provided, it will be set.
3846 *
39- * @param array<array<string>|string>|string|null $value
47+ * @param array<int|string, array<string, string>|string>|string|null $value
4048 */
4149 public function __construct (string $ name , $ value = null )
4250 {
@@ -56,7 +64,7 @@ public function getName(): string
5664 * Gets the raw value of the header. This may return either a string
5765 * of an array, depending on whether the header has multiple values or not.
5866 *
59- * @return array<array<string>|string>|string
67+ * @return array<int|string, array<string, string>|string>|string
6068 */
6169 public function getValue ()
6270 {
@@ -78,7 +86,7 @@ public function setName(string $name)
7886 /**
7987 * Sets the value of the header, overwriting any previous value(s).
8088 *
81- * @param array<array<string>|string>|string|null $value
89+ * @param array<int|string, array<string, string>|string>|string|null $value
8290 *
8391 * @return $this
8492 */
0 commit comments