Skip to content

Commit 825b825

Browse files
author
Randy Geraads
committed
cs
1 parent 0ad6bc4 commit 825b825

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

src/Symfony/Component/BrowserKit/Request.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,7 @@ public function getContent()
114114
return $this->content;
115115
}
116116

117-
/**
118-
* @param array $parameters
119-
*
120-
* @return array
121-
*/
122-
private static function convertAllValuesToString(array $parameters)
117+
private static function convertAllValuesToString(array $parameters): array
123118
{
124119
array_walk_recursive($parameters, static function (&$value) {
125120
$value = (string) $value;

src/Symfony/Component/BrowserKit/Tests/RequestTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,20 +52,20 @@ public function testGetServer()
5252
$this->assertEquals(['foo' => 'bar'], $request->getServer(), '->getServer() returns the server parameters of the request');
5353
}
5454

55-
public function testAllParameterValuesAreConvertedToString()
55+
public function testAllParameterValuesAreConvertedToString(): void
5656
{
5757
$parameters = [
5858
'foo' => 1,
5959
'bar' => [
6060
'baz' => 2,
61-
]
61+
],
6262
];
6363

6464
$expected = [
6565
'foo' => '1',
6666
'bar' => [
6767
'baz' => '2',
68-
]
68+
],
6969
];
7070

7171
$request = new Request('http://www.example.com/', 'get', $parameters);

0 commit comments

Comments
 (0)