Skip to content

Commit

Permalink
Merge pull request #582 from saeideng/optional-parameter
Browse files Browse the repository at this point in the history
remove optional parameter value
  • Loading branch information
saeideng committed Feb 9, 2022
2 parents cf3bff0 + 99e2f5a commit a66f7b9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/File/Writer/DefaultWriter.php
Expand Up @@ -64,7 +64,7 @@ class DefaultWriter implements WriterInterface
public function __construct(
Table $table,
EntityInterface $entity,
?UploadedFileInterface $data = null,
?UploadedFileInterface $data,
string $field,
array $settings
) {
Expand Down
2 changes: 1 addition & 1 deletion src/File/Writer/WriterInterface.php
Expand Up @@ -21,7 +21,7 @@ interface WriterInterface
public function __construct(
Table $table,
EntityInterface $entity,
?UploadedFileInterface $data = null,
?UploadedFileInterface $data,
string $field,
array $settings
);
Expand Down
2 changes: 1 addition & 1 deletion src/Model/Behavior/UploadBehavior.php
Expand Up @@ -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 {
Expand Down

0 comments on commit a66f7b9

Please sign in to comment.