File tree Expand file tree Collapse file tree 2 files changed +4
-9
lines changed
src/Symfony/Component/BrowserKit Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -114,12 +114,7 @@ public function getContent()
114
114
return $ this ->content ;
115
115
}
116
116
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
123
118
{
124
119
array_walk_recursive ($ parameters , static function (&$ value ) {
125
120
$ value = (string ) $ value ;
Original file line number Diff line number Diff line change @@ -52,20 +52,20 @@ public function testGetServer()
52
52
$ this ->assertEquals (['foo ' => 'bar ' ], $ request ->getServer (), '->getServer() returns the server parameters of the request ' );
53
53
}
54
54
55
- public function testAllParameterValuesAreConvertedToString ()
55
+ public function testAllParameterValuesAreConvertedToString (): void
56
56
{
57
57
$ parameters = [
58
58
'foo ' => 1 ,
59
59
'bar ' => [
60
60
'baz ' => 2 ,
61
- ]
61
+ ],
62
62
];
63
63
64
64
$ expected = [
65
65
'foo ' => '1 ' ,
66
66
'bar ' => [
67
67
'baz ' => '2 ' ,
68
- ]
68
+ ],
69
69
];
70
70
71
71
$ request = new Request ('http://www.example.com/ ' , 'get ' , $ parameters );
You can’t perform that action at this time.
0 commit comments