Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -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\>\|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
Expand Down
2 changes: 1 addition & 1 deletion src/bundle/IO/BinaryStreamResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}
}
Expand Down
Loading