Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6b608e8

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

File tree

Expand file treeCollapse file tree

1 file changed

+7
-7
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+7
-7
lines changed

‎src/Symfony/Component/HttpFoundation/HeaderBag.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpFoundation/HeaderBag.php
+7-7Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.