Skip to content

Commit 81ada0b

Browse files
author
Randy Geraads
committed
inlined method
1 parent eb6641f commit 81ada0b

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy