File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Filter options
src/Symfony/Component/HttpFoundation Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Original file line number Diff line number Diff line change @@ -101,11 +101,11 @@ public function add(array $headers)
101
101
/**
102
102
* Returns a header value by name.
103
103
*
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
107
107
*
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
109
109
*/
110
110
public function get ($ key , $ default = null , $ first = true )
111
111
{
@@ -129,9 +129,9 @@ public function get($key, $default = null, $first = true)
129
129
/**
130
130
* Sets a header by name.
131
131
*
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)
135
135
*/
136
136
public function set ($ key , $ values , $ replace = true )
137
137
{
You can’t perform that action at this time.
0 commit comments