[HttpFoundation] fixed return type of method HeaderBag::get
This commit is contained in:
parent
8e8ee09747
commit
6b608e8a5a
|
@ -102,10 +102,10 @@ class HeaderBag implements \IteratorAggregate, \Countable
|
|||
* Returns a header value by name.
|
||||
*
|
||||
* @param string $key The header name
|
||||
* @param mixed $default The default value
|
||||
* @param string|string[] $default The default value
|
||||
* @param bool $first Whether to return the first value or all header values
|
||||
*
|
||||
* @return string|array The first header value if $first is true, an array of values otherwise
|
||||
* @return string|string[] The first header value or default value if $first is true, an array of values otherwise
|
||||
*/
|
||||
public function get($key, $default = null, $first = true)
|
||||
{
|
||||
|
@ -130,7 +130,7 @@ class HeaderBag implements \IteratorAggregate, \Countable
|
|||
* Sets a header by name.
|
||||
*
|
||||
* @param string $key The key
|
||||
* @param string|array $values The value or an array of values
|
||||
* @param string|string[] $values The value or an array of values
|
||||
* @param bool $replace Whether to replace the actual value or not (true by default)
|
||||
*/
|
||||
public function set($key, $values, $replace = true)
|
||||
|
|
Reference in New Issue