[HttpFoundation] Fixed phpdoc for get method of HeaderBag
This commit is contained in:
parent
fc41042008
commit
a72f4ecb3a
@ -101,11 +101,11 @@ class HeaderBag implements \IteratorAggregate, \Countable
|
|||||||
/**
|
/**
|
||||||
* Returns a header value by name.
|
* Returns a header value by name.
|
||||||
*
|
*
|
||||||
* @param string $key The header name
|
* @param string $key The header name
|
||||||
* @param string|string[] $default The default value
|
* @param string|string[]|null $default The default value
|
||||||
* @param bool $first Whether to return the first value or all header values
|
* @param bool $first Whether to return the first value or all header values
|
||||||
*
|
*
|
||||||
* @return string|string[] The first header value or default value if $first is true, an array of values otherwise
|
* @return string|string[]|null The first header value or default value if $first is true, an array of values otherwise
|
||||||
*/
|
*/
|
||||||
public function get($key, $default = null, $first = true)
|
public function get($key, $default = null, $first = true)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user