title: Symfony redirect response error
body: <p>I got this error when trying to redirect to another method</p>
  
  <blockquote>
    <p>Type error: Argument 1 passed to
    Symfony\Component\HttpFoundation\ResponseHeaderBag::__construct() must
    be of the type array, integer given, called in
    /proyect/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Response.php
    on line 199</p>
  </blockquote>
  
  <p>But I'm sending an empty array</p>
  
  <pre><code>return new RedirectResponse('persons', array(), UrlGeneratorInterface::RELATIVE_PATH);
  </code></pre>
  
  <p>Any help?</p>