Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit deaff2c

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

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎src/Symfony/Component/HttpFoundation/BinaryFileResponse.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpFoundation/BinaryFileResponse.php
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.