From 99e2f5af6a1f9ee2e7374baa4921ad9fbcdaafd5 Mon Sep 17 00:00:00 2001 From: saeid Date: Mon, 31 Jan 2022 14:53:24 +0330 Subject: [PATCH] remove optional parameter value --- src/File/Writer/DefaultWriter.php | 2 +- src/File/Writer/WriterInterface.php | 2 +- src/Model/Behavior/UploadBehavior.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/File/Writer/DefaultWriter.php b/src/File/Writer/DefaultWriter.php index c21be10a..548ee354 100644 --- a/src/File/Writer/DefaultWriter.php +++ b/src/File/Writer/DefaultWriter.php @@ -64,7 +64,7 @@ class DefaultWriter implements WriterInterface public function __construct( Table $table, EntityInterface $entity, - ?UploadedFileInterface $data = null, + ?UploadedFileInterface $data, string $field, array $settings ) { diff --git a/src/File/Writer/WriterInterface.php b/src/File/Writer/WriterInterface.php index b1891950..6407109a 100644 --- a/src/File/Writer/WriterInterface.php +++ b/src/File/Writer/WriterInterface.php @@ -21,7 +21,7 @@ interface WriterInterface public function __construct( Table $table, EntityInterface $entity, - ?UploadedFileInterface $data = null, + ?UploadedFileInterface $data, string $field, array $settings ); diff --git a/src/Model/Behavior/UploadBehavior.php b/src/Model/Behavior/UploadBehavior.php index 946367bd..c3fb6ba6 100644 --- a/src/Model/Behavior/UploadBehavior.php +++ b/src/Model/Behavior/UploadBehavior.php @@ -210,7 +210,7 @@ public function getPathProcessor(EntityInterface $entity, $data, string $field, */ public function getWriter( EntityInterface $entity, - ?UploadedFileInterface $data = null, + ?UploadedFileInterface $data, string $field, array $settings ): WriterInterface {