Skip to content

Commit deaff2c

Browse files
nerg4lfabpot
andauthored
[HttpFoundation] Change return type of setChunkSize
Co-authored-by: Fabien Potencier <fabien@potencier.org>
1 parent f0fd8d2 commit deaff2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpFoundation/BinaryFileResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public function getFile()
130130
*
131131
* @return $this
132132
*/
133-
public function setChunkSize(int $chunkSize)
133+
public function setChunkSize(int $chunkSize): self
134134
{
135135
if ($chunkSize < 1 || $chunkSize > \PHP_INT_MAX) {
136136
throw new \LogicException('The chunk size of a BinaryFileResponse cannot be less than 1 or greater than PHP_INT_MAX.');

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy