@@ -45,7 +45,7 @@ class BinaryFileResponse extends Response
45
45
* @param bool $autoEtag Whether the ETag header should be automatically set
46
46
* @param bool $autoLastModified Whether the Last-Modified header should be automatically set
47
47
*/
48
- public function __construct ($ file , int $ status = 200 , array $ headers = [], bool $ public = true , string $ contentDisposition = null , bool $ autoEtag = false , bool $ autoLastModified = true )
48
+ public function __construct ($ file , int $ status = 200 , array $ headers = [], bool $ public = true , ? string $ contentDisposition = null , bool $ autoEtag = false , bool $ autoLastModified = true )
49
49
{
50
50
parent ::__construct (null , $ status , $ headers );
51
51
@@ -69,7 +69,7 @@ public function __construct($file, int $status = 200, array $headers = [], bool
69
69
*
70
70
* @deprecated since Symfony 5.2, use __construct() instead.
71
71
*/
72
- public static function create ($ file = null , int $ status = 200 , array $ headers = [], bool $ public = true , string $ contentDisposition = null , bool $ autoEtag = false , bool $ autoLastModified = true )
72
+ public static function create ($ file = null , int $ status = 200 , array $ headers = [], bool $ public = true , ? string $ contentDisposition = null , bool $ autoEtag = false , bool $ autoLastModified = true )
73
73
{
74
74
trigger_deprecation ('symfony/http-foundation ' , '5.2 ' , 'The "%s()" method is deprecated, use "new %s()" instead. ' , __METHOD__ , static ::class);
75
75
@@ -85,7 +85,7 @@ public static function create($file = null, int $status = 200, array $headers =
85
85
*
86
86
* @throws FileException
87
87
*/
88
- public function setFile ($ file , string $ contentDisposition = null , bool $ autoEtag = false , bool $ autoLastModified = true )
88
+ public function setFile ($ file , ? string $ contentDisposition = null , bool $ autoEtag = false , bool $ autoLastModified = true )
89
89
{
90
90
if (!$ file instanceof File) {
91
91
if ($ file instanceof \SplFileInfo) {
0 commit comments