From 2600abbfd9c9da5599d58cd84d632c7e277a56ea Mon Sep 17 00:00:00 2001 From: pawelpawlik Date: Wed, 29 Oct 2025 11:36:40 +0100 Subject: [PATCH 1/2] IBX-10865 set correct type for Content-Length header --- src/bundle/IO/BinaryStreamResponse.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bundle/IO/BinaryStreamResponse.php b/src/bundle/IO/BinaryStreamResponse.php index 3365bb8456..a2887f4fa2 100644 --- a/src/bundle/IO/BinaryStreamResponse.php +++ b/src/bundle/IO/BinaryStreamResponse.php @@ -245,7 +245,7 @@ private function processRangeRequest(Request $request): void $this->setStatusCode(Response::HTTP_PARTIAL_CONTENT); $this->headers->set('Content-Range', sprintf('bytes %s-%s/%s', $start, $end, $fileSize)); - $this->headers->set('Content-Length', $end - $start + 1); + $this->headers->set('Content-Length', (string)($end - $start + 1)); } } } From 2c350fc9e53ac486a12e0de43664a8475786596a Mon Sep 17 00:00:00 2001 From: pawelpawlik Date: Thu, 30 Oct 2025 09:12:35 +0100 Subject: [PATCH 2/2] IBX-10865 update phpstan baseline --- phpstan-baseline.neon | 6 ------ 1 file changed, 6 deletions(-) diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 28cd9d91f0..64e1332a95 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -4038,12 +4038,6 @@ parameters: count: 1 path: src/bundle/IO/BinaryStreamResponse.php - - - message: '#^Parameter \#2 \$values of method Symfony\\Component\\HttpFoundation\\ResponseHeaderBag\:\:set\(\) expects array\\|string\|null, int given\.$#' - identifier: argument.type - count: 1 - path: src/bundle/IO/BinaryStreamResponse.php - - message: '#^Call to an undefined method Symfony\\Component\\Config\\Definition\\Builder\\NodeDefinition\:\:children\(\)\.$#' identifier: method.notFound