Skip to content

Commit 4887f53

Browse files
JanHortfabpot
authored andcommitted
[HttpFoundation] Fixed phpdoc for get method of HeaderBag
1 parent 8c33870 commit 4887f53

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

HeaderBag.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,11 @@ public function add(array $headers)
101101
/**
102102
* Returns a header value by name.
103103
*
104-
* @param string $key The header name
105-
* @param string|string[] $default The default value
106-
* @param bool $first Whether to return the first value or all header values
104+
* @param string $key The header name
105+
* @param string|string[]|null $default The default value
106+
* @param bool $first Whether to return the first value or all header values
107107
*
108-
* @return string|string[] The first header value or default value if $first is true, an array of values otherwise
108+
* @return string|string[]|null The first header value or default value if $first is true, an array of values otherwise
109109
*/
110110
public function get($key, $default = null, $first = true)
111111
{

0 commit comments

Comments
 (0)