"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/Symfony/Component/BrowserKit/Client.php" between
symfony-4.4.14.tar.gz and symfony-4.4.15.tar.gz

About: Symfony is a web application framework for PHP projects. Source code (4.4 series).

Client.php  (symfony-4.4.14):Client.php  (symfony-4.4.15)
skipping to change at line 317 skipping to change at line 317
/** /**
* Submits a form. * Submits a form.
* *
* @param array $values An array of form field values * @param array $values An array of form field values
* @param array $serverParameters An array of server parameters * @param array $serverParameters An array of server parameters
* *
* @return Crawler * @return Crawler
*/ */
public function submit(Form $form, array $values = []/*, array $serverParame ters = []*/) public function submit(Form $form, array $values = []/*, array $serverParame ters = []*/)
{ {
if (\func_num_args() < 3 && __CLASS__ !== static::class && __CLASS__ !== (new \ReflectionMethod($this, __FUNCTION__))->getDeclaringClass()->getName() && !$this instanceof \PHPUnit\Framework\MockObject\MockObject && !$this instanceof \Prophecy\Prophecy\ProphecySubjectInterface) { if (\func_num_args() < 3 && __CLASS__ !== static::class && __CLASS__ !== (new \ReflectionMethod($this, __FUNCTION__))->getDeclaringClass()->getName() && !$this instanceof \PHPUnit\Framework\MockObject\MockObject && !$this instanceof \Prophecy\Prophecy\ProphecySubjectInterface && !$this instanceof \Mockery\MockI nterface) {
@trigger_error(sprintf('The "%s()" method will have a new "array $se rverParameters = []" argument in version 5.0, not defining it is deprecated sinc e Symfony 4.2.', static::class.'::'.__FUNCTION__), \E_USER_DEPRECATED); @trigger_error(sprintf('The "%s()" method will have a new "array $se rverParameters = []" argument in version 5.0, not defining it is deprecated sinc e Symfony 4.2.', static::class.'::'.__FUNCTION__), \E_USER_DEPRECATED);
} }
$form->setValues($values); $form->setValues($values);
$serverParameters = 2 < \func_num_args() ? func_get_arg(2) : []; $serverParameters = 2 < \func_num_args() ? func_get_arg(2) : [];
return $this->request($form->getMethod(), $form->getUri(), $form->getPhp Values(), $form->getPhpFiles(), $serverParameters); return $this->request($form->getMethod(), $form->getUri(), $form->getPhp Values(), $form->getPhpFiles(), $serverParameters);
} }
/** /**
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)