minor #24680 [HttpFoundation] Fix RedirectResponse factory method phpdoc (ronfroy)

This PR was merged into the 2.7 branch.

Discussion
----------

[HttpFoundation] Fix RedirectResponse factory method phpdoc

| Q             | A
| ------------- | ---
| Branch?       | 2.7
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| License       | MIT

Fix the phpdoc of the factory method on the RedirectResponse (signatures are different between Response and RedirectResponse).

Commits
-------

7cd3049454 fix the phpdoc that is not really inherited from response
This commit is contained in:
Fabien Potencier 2017-10-25 11:30:31 -07:00
commit b0cf42b32b
1 changed files with 7 additions and 1 deletions

View File

@ -44,7 +44,13 @@ class RedirectResponse extends Response
}
/**
* {@inheritdoc}
* Factory method for chainability.
*
* @param string $url The url to redirect to
* @param int $status The response status code
* @param array $headers An array of response headers
*
* @return static
*/
public static function create($url = '', $status = 302, $headers = array())
{