Skip to content

Commit 5e1a061

Browse files
Merge branch '7.4' into 8.0
* 7.4: [HttpKernel][Security] Refactor: use `getAttributes` with argument mark getRequiredOptions()/getDefaultOption() of UniqueEntity as deprecated do not install ext-zstd on PHP 8.5 [DoctrineBridge] Prevent idle connection listener from running on subrequests optimize `in_array` calls [Routing] Add test to validate that default value is allowed to not match requirement [DependencyInjection] Fix proxying services defined with an abstract class and a factory fix handling required options Fix @var phpdoc [Lock] [MongoDB] Enforce readPreference=primary and writeConcern=majority [FrameworkBundle] fix phpdoc in `MicroKernelTrait` Fixed validator translations for Albanian
2 parents 7244d8d + 60f6518 commit 5e1a061

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

AbstractBrowser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ public function followRedirect(): Crawler
557557

558558
$request = $this->internalRequest;
559559

560-
if (\in_array($this->internalResponse->getStatusCode(), [301, 302, 303])) {
560+
if (\in_array($this->internalResponse->getStatusCode(), [301, 302, 303], true)) {
561561
$method = 'GET';
562562
$files = [];
563563
$content = null;

HttpBrowser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ protected function doRequest(object $request): Response
6464
*/
6565
private function getBodyAndExtraHeaders(Request $request, array $headers): array
6666
{
67-
if (\in_array($request->getMethod(), ['GET', 'HEAD']) && !isset($headers['content-type'])) {
67+
if (\in_array($request->getMethod(), ['GET', 'HEAD'], true) && !isset($headers['content-type'])) {
6868
return ['', []];
6969
}
7070

0 commit comments

Comments
 (0)