Skip to content

Commit ff9ac5d

Browse files
dunglasfabpot
authored andcommitted
[BrowserKit] Fix a BC break in Client affecting Panthère
1 parent 16355a5 commit ff9ac5d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Client.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -284,14 +284,16 @@ public function click(Link $link)
284284
/**
285285
* Submits a form.
286286
*
287-
* @param Form $form A Form instance
288-
* @param array $values An array of form field values
287+
* @param Form $form A Form instance
288+
* @param array $values An array of form field values
289+
* @param array $serverParameters An array of server parameters
289290
*
290291
* @return Crawler
291292
*/
292-
public function submit(Form $form, array $values = array(), $serverParameters = array())
293+
public function submit(Form $form, array $values = array()/*, array $serverParameters = array()*/)
293294
{
294295
$form->setValues($values);
296+
$serverParameters = 2 < \func_num_args() ? func_get_arg(2) : array();
295297

296298
return $this->request($form->getMethod(), $form->getUri(), $form->getPhpValues(), $form->getPhpFiles(), $serverParameters);
297299
}

0 commit comments

Comments
 (0)