Skip to content

Commit 44a03b1

Browse files
minor symfony#24949 [HttpFoundation] fixed return type of method HeaderBag::get (AmsTaFFix)
This PR was merged into the 2.7 branch. Discussion ---------- [HttpFoundation] fixed return type of method HeaderBag::get | Q | A | ------------- | --- | Branch? | 3.3 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | License | MIT <!-- - Bug fixes must be submitted against the lowest branch where they apply (lowest branches are regularly merged to upper ones so they get the fixes too). - Features and deprecations must be submitted against the master branch. - Please fill in this template according to the PR you're about to submit. - Replace this comment by a description of what your PR is solving. --> Commits ------- 6b608e8 [HttpFoundation] fixed return type of method HeaderBag::get
2 parents b7d6963 + 6b608e8 commit 44a03b1

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)