10000 minor #24680 [HttpFoundation] Fix RedirectResponse factory method php… · symfony/symfony@b0cf42b · GitHub
[go: up one dir, main page]

Skip to content

Commit b0cf42b

Browse files
committed
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 ------- 7cd3049 fix the phpdoc that is not really inherited from response
2 parents fd225b0 + 7cd3049 commit b0cf42b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/Symfony/Component/HttpFoundation/RedirectResponse.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,13 @@ public function __construct($url, $status = 302, $headers = array())
4444
}
4545

4646
/**
47-
* {@inheritdoc}
47+
* Factory method for chainability.
48+
*
49+
* @param string $url The url to redirect to
50+
* @param int $status The response status code
51+
* @param array $headers An array of response headers
52+
*
53+
* @return static
4854
*/
4955
public static function create($url = '', $status = 302, $headers = array())
5056
{

0 commit comments

Comments
 (0)
0