8000 feature #38052 Increase HttpBrowser::getHeaders() visibility to prote… · symfony/symfony@c2522fa · GitHub
[go: up one dir, main page]

Skip to content

Commit c2522fa

Browse files
committed
feature #38052 Increase HttpBrowser::getHeaders() visibility to protected (iansltx)
This PR was merged into the 5.2-dev branch. Discussion ---------- Increase HttpBrowser::getHeaders() visibility to protected Resolves #38051 | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | yes | Deprecations? | no | Tickets | Fix #38051 | License | MIT | Doc PR | symfony/symfony-docs#... <!-- required for new features --> Increases visibility to allow for oddball header overrides; see #38051 for more detail. If this looks good, let me know if this is worth adding docs/changelog entries and I'll do so. Commits ------- 3d75ab5 Increase HttpBrowser::getHeaders() visibility to protected
2 parents 05bdfc9 + 3d75ab5 commit c2522fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/BrowserKit/HttpBrowser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ private function getBodyAndExtraHeaders(Request $request, array $headers): array
9494
return [http_build_query($fields, '', '&', \PHP_QUERY_RFC1738), ['Content-Type' => 'application/x-www-form-urlencoded']];
9595
}
9696

97-
private function getHeaders(Request $request): array
97+
protected function getHeaders(Request $request): array
9898
{
9999
$headers = [];
100100
foreach ($request->getServer() as $key => $value) {

0 commit comments

Comments
 (0)
0