8000 minor #26465 Default deleteFileAfterSend() to true (nowendwell) · src-run/symfony@7ff71b5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7ff71b5

Browse files
committed
minor symfony#26465 Default deleteFileAfterSend() to true (nowendwell)
This PR was merged into the 4.1-dev branch. Discussion ---------- Default deleteFileAfterSend() to true This should default to true when called since there is only one option. | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | N/A | Fixed tickets | N/A | License | MIT | Doc PR | <!-- * Defaults deleteFileAfterSend() to true --> Commits ------- 1de6f73 Default deleteFileAfterSend() to true
2 parents b486fda + 1de6f73 commit 7ff71b5

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
@@ -350,7 +350,7 @@ public static function trustXSendfileTypeHeader()
350350
*
351351
* @return $this
352352
*/
353-
public function deleteFileAfterSend($shouldDelete)
353+
public function deleteFileAfterSend($shouldDelete = true)
354354
{
355355
$this->deleteFileAfterSend = $shouldDelete;
356356

0 commit comments

Comments
 (0)
0