Skip to content

Commit ee44625

Browse files
committed
fixed CS
1 parent 50c46ab commit ee44625

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Client.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ public function clickLink(string $linkText): Crawler
316316
public function submit(Form $form, array $values = []/*, array $serverParameters = []*/)
317317
{
318318
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) {
319-
@trigger_error(sprintf('The "%s()" method will have a new "array $serverParameters = array()" argument in version 5.0, not defining it is deprecated since Symfony 4.2.', __METHOD__), E_USER_DEPRECATED);
319+
@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.', __METHOD__), E_USER_DEPRECATED);
320320
}
321321

322322
$form->setValues($values);
@@ -330,7 +330,7 @@ public function submit(Form $form, array $values = []/*, array $serverParameters
330330
* uses it to submit the given form field values.
331331
*
332332
* @param string $button The text content, id, value or name of the form <button> or <input type="submit">
333-
* @param array $fieldValues Use this syntax: array('my_form[name]' => '...', 'my_form[email]' => '...')
333+
* @param array $fieldValues Use this syntax: ['my_form[name]' => '...', 'my_form[email]' => '...']
334334
* @param string $method The HTTP method used to submit the form
335335
* @param array $serverParameters These values override the ones stored in $_SERVER (HTTP headers must include a HTTP_ prefix as PHP does)
336336
*/

Tests/ClientTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -896,7 +896,7 @@ public function testInternalRequestNull()
896896

897897
/**
898898
* @group legacy
899-
* @expectedDeprecation The "Symfony\Component\BrowserKit\Client::submit()" method will have a new "array $serverParameters = array()" argument in version 5.0, not defining it is deprecated since Symfony 4.2.
899+
* @expectedDeprecation The "Symfony\Component\BrowserKit\Client::submit()" method will have a new "array $serverParameters = []" argument in version 5.0, not defining it is deprecated since Symfony 4.2.
900900
*/
901901
public function testInheritedClassCallSubmitWithTwoArguments()
902902
{

0 commit comments

Comments
 (0)