Skip to content

Commit eaba19f

Browse files
author
Randy Geraads
committed
inlined method
1 parent d63986e commit eaba19f

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

src/Symfony/Component/BrowserKit/Request.php

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,12 @@ public function __construct(string $uri, string $method, array $parameters = [],
3737
{
3838
$this->uri = $uri;
3939
$this->method = $method;
40-
$this->parameters = self::convertAllValuesToString($parameters);
40+
41+
array_walk_recursive($parameters, static function (&$value) {
42+
$value = (string)$value;
43+
});
44+
45+
$this->parameters = $parameters;
4146
$this->files = $files;
4247
$this->cookies = $cookies;
4348
$this->server = $server;
@@ -113,13 +118,4 @@ public function getContent()
113118
{
114119
return $this->content;
115120
}
116-
117-
private static function convertAllValuesToString(array $parameters): array
118-
{
119-
array_walk_recursive($parameters, static function (&$value) {
120-
$value = (string) $value;
121-
});
122-
123-
return $parameters;
124-
}
125121
}

0 commit comments

Comments
 (0)