Increase HttpBrowser::getHeaders() visibility to protected

Resolves symfony/symfony#38051
This commit is contained in:
Ian Littman 2020-09-03 22:08:06 -05:00 committed by GitHub
parent 174d91c23b
commit 3d75ab515f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -94,7 +94,7 @@ class HttpBrowser extends AbstractBrowser
return [http_build_query($fields, '', '&', \PHP_QUERY_RFC1738), ['Content-Type' => 'application/x-www-form-urlencoded']]; return [http_build_query($fields, '', '&', \PHP_QUERY_RFC1738), ['Content-Type' => 'application/x-www-form-urlencoded']];
} }
private function getHeaders(Request $request): array protected function getHeaders(Request $request): array
{ {
$headers = []; $headers = [];
foreach ($request->getServer() as $key => $value) { foreach ($request->getServer() as $key => $value) {