Skip to content

Commit 6b608e8

Browse files
AmsTaFFixnicolas-grekas
authored andcommitted
[HttpFoundation] fixed return type of method HeaderBag::get
1 parent 8e8ee09 commit 6b608e8

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/Symfony/Component/HttpFoundation/HeaderBag.php

Lines changed: 7 additions & 7 deletions
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 mixed $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[] $default The default value
106+
* @param bool $first Whether to return the first value or all header values
107107
*
108-
* @return string|array The first header value if $first is true, an array of values otherwise
108+
* @return string|string[] 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
{
@@ -129,9 +129,9 @@ public function get($key, $default = null, $first = true)
129129
/**
130130
* Sets a header by name.
131131
*
132-
* @param string $key The key
133-
* @param string|array $values The value or an array of values
134-
* @param bool $replace Whether to replace the actual value or not (true by default)
132+
* @param string $key The key
133+
* @param string|string[] $values The value or an array of values
134+
* @param bool $replace Whether to replace the actual value or not (true by default)
135135
*/
136136
public function set($key, $values, $replace = true)
137137
{

0 commit comments

Comments
 (0)