From 1de6f738efbcf80b18103a8ee29b07a3c9edc405 Mon Sep 17 00:00:00 2001 From: Ben Miller Date: Thu, 8 Mar 2018 16:27:46 -0800 Subject: [PATCH] Default deleteFileAfterSend() to true This should default to true when called since there is only one option. --- src/Symfony/Component/HttpFoundation/BinaryFileResponse.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/HttpFoundation/BinaryFileResponse.php b/src/Symfony/Component/HttpFoundation/BinaryFileResponse.php index d5a08ea8fa..bee8b82687 100644 --- a/src/Symfony/Component/HttpFoundation/BinaryFileResponse.php +++ b/src/Symfony/Component/HttpFoundation/BinaryFileResponse.php @@ -350,7 +350,7 @@ class BinaryFileResponse extends Response * * @return $this */ - public function deleteFileAfterSend($shouldDelete) + public function deleteFileAfterSend($shouldDelete = true) { $this->deleteFileAfterSend = $shouldDelete;