10000 Give a default value to $filedValues argument · symfony/symfony@80fac35 · GitHub
[go: up one dir, main page]

Skip to content

Commit 80fac35

Browse files
committed
Give a default value to $filedValues argument
1 parent 48aa504 commit 80fac35

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/BrowserKit/Client.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ public function click(Link $link)
293293
/**
294294
* Clicks the first link (or clickable image) that contains the given text.
295295
*
296-
* @param string $linkText The text of the link or the alt attribute of a clickable image
296+
* @param string $linkText The text of the link or the alt attribute of the clickable image
297297
*/
298298
public function clickLink(string $linkText): Crawler
299299
{
@@ -325,7 +325,7 @@ public function submit(Form $form, array $values = array()/*, array $serverParam
325325
* @param array $fieldValues Use this syntax: array('my_form[name]' => '...', 'my_form[email]' => '...')
326326
* @param string $method The HTTP method used to submit the form
327327
*/
328-
public function submitForm(string $button, array $fieldValues, string $method = 'POST'): Crawler
328+
public function submitForm(string $button, array $fieldValues = array(), string $method = 'POST'): Crawler
329329
{
330330
$buttonNode = $this->getCrawler()->selectButton($button);
331331
$form = $buttonNode->form($fieldValues, $method);

0 commit comments

Comments
 (0)
0