minor #17838 Remove duplicate validation in RedirectResponse (Tobion)

This PR was merged into the 2.3 branch.

Discussion
----------

Remove duplicate validation in RedirectResponse

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

Commits
-------

d27c4f4 Remove duplicate validation in RedirectResponse
This commit is contained in:
Fabien Potencier 2016-02-18 08:03:40 +01:00
commit f01cda604c
1 changed files with 0 additions and 4 deletions

View File

@ -33,10 +33,6 @@ class RedirectResponse extends Response
*/
public function __construct($url, $status = 302, $headers = array())
{
if (empty($url)) {
throw new \InvalidArgumentException('Cannot redirect to an empty URL.');
}
parent::__construct('', $status, $headers);
$this->setTargetUrl($url);