Skip to content

Commit

Permalink
minor #40728 [PHPDoc] Fix some union type cases (fancyweb)
Browse files Browse the repository at this point in the history
This PR was merged into the 4.4 branch.

Discussion
----------

[PHPDoc] Fix some union type cases

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | -
| License       | MIT
| Doc PR        | -

While working on symfony/symfony#40154, I discovered some PHPDoc issues, I'm going to comment in the review. Upper branches will need some fixes too.

Commits
-------

dd1481642b [PHPDoc] Fix some union type cases
  • Loading branch information
Nyholm committed Apr 8, 2021
2 parents e0fd73d + fbc6ebf commit 4c8b42b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public function getHeaders()
* @param string $header The header name
* @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|array|null The first header value if $first is true, an array of values otherwise
*/
public function getHeader($header, $first = true)
{
Expand Down

0 comments on commit 4c8b42b

Please sign in to comment.