original_string: public function submit(Form $form, array $values = []/*, array $serverParameters = []*/)
      {
          if (\func_num_args() < 3 && __CLASS__ !== \get_class($this) && __CLASS__ !== (new \ReflectionMethod($this, __FUNCTION__))->getDeclaringClass()->getName() && !$this instanceof \PHPUnit\Framework\MockObject\MockObject && !$this instanceof \Prophecy\Prophecy\ProphecySubjectInterface) {
              @trigger_error(sprintf('The "%s()" method will have a new "array $serverParameters = []" argument in version 5.0, not defining it is deprecated since Symfony 4.2.', \get_class($this).'::'.__FUNCTION__), E_USER_DEPRECATED);
          }
  
          $form->setValues($values);
          $serverParameters = 2 < \func_num_args() ? func_get_arg(2) : [];
  
          return $this->request($form->getMethod(), $form->getUri(), $form->getPhpValues(), $form->getPhpFiles(), $serverParameters);
      }
code: public function submit(Form $form, array $values = []/*, array $serverParameters = []*/)
      {
          if (\func_num_args() < 3 && __CLASS__ !== \get_class($this) && __CLASS__ !== (new \ReflectionMethod($this, __FUNCTION__))->getDeclaringClass()->getName() && !$this instanceof \PHPUnit\Framework\MockObject\MockObject && !$this instanceof \Prophecy\Prophecy\ProphecySubjectInterface) {
              @trigger_error(sprintf('The "%s()" method will have a new "array $serverParameters = []" argument in version 5.0, not defining it is deprecated since Symfony 4.2.', \get_class($this).'::'.__FUNCTION__), E_USER_DEPRECATED);
          }
  
          $form->setValues($values);
          $serverParameters = 2 < \func_num_args() ? func_get_arg(2) : [];
  
          return $this->request($form->getMethod(), $form->getUri(), $form->getPhpValues(), $form->getPhpFiles(), $serverParameters);
      }
code_tokens: public function submit ( Form $ form , array $ values = [ ] /*, array $serverParameters = []*/ ) { if ( \ func_num_args ( ) < 3 && __CLASS__ !== \ get_class ( $ this ) && __CLASS__ !== ( new \ ReflectionMethod ( $ this , __FUNCTION__ ) ) -> getDeclaringClass ( ) -> getName ( ) && ! $ this instanceof \ PHPUnit \ Framework \ MockObject \ MockObject && ! $ this instanceof \ Prophecy \ Prophecy \ ProphecySubjectInterface ) { @ trigger_error ( sprintf ( 'The "%s()" method will have a new "array $serverParameters = []" argument in version 5.0, not defining it is deprecated since Symfony 4.2.' , \ get_class ( $ this ) . '::' . __FUNCTION__ ) , E_USER_DEPRECATED ) ; } $ form -> setValues ( $ values ) ; $ serverParameters = 2 < \ func_num_args ( ) ? func_get_arg ( 2 ) : [ ] ; return $ this -> request ( $ form -> getMethod ( ) , $ form -> getUri ( ) , $ form -> getPhpValues ( ) , $ form -> getPhpFiles ( ) , $ serverParameters ) ; }
docstring: Submits a form.
  
  @param Form  $form             A Form instance
  @param array $values           An array of form field values
  @param array $serverParameters An array of server parameters
  
  @return Crawler
docstring_tokens: Submits a form .