File tree 3 files changed +4
-4
lines changed
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ public function postSubmit(FormEvent $event): void
149
149
}
150
150
}
151
151
152
- private function isFieldSingleUpload (ResolvedFormTypeInterface $ formTypeInterface = null ): bool
152
+ private function isFieldSingleUpload (? ResolvedFormTypeInterface $ formTypeInterface = null ): bool
153
153
{
154
154
if ($ formTypeInterface == null ) {
155
155
return false ;
Original file line number Diff line number Diff line change @@ -7,5 +7,5 @@ interface FileStorageInterface
7
7
{
8
8
public function storeFiles (array $ files ): array ;
9
9
10
- public function getFile (string $ fileId = null ): ?UploadedFile ;
10
+ public function getFile (? string $ fileId = null ): ?UploadedFile ;
11
11
}
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ class LocalFileStorage implements FileStorageInterface
18
18
19
19
private SessionInterface $ session ;
20
20
21
- public function __construct (private readonly RequestStack $ requestStack , string $ tempDir = null )
21
+ public function __construct (private readonly RequestStack $ requestStack , ? string $ tempDir = null )
22
22
{
23
23
$ this ->temporaryDirectory = $ tempDir ?: sys_get_temp_dir () . DIRECTORY_SEPARATOR . 's2a ' . DIRECTORY_SEPARATOR . 'collectionupload ' ;
24
24
}
@@ -52,7 +52,7 @@ public function storeFiles(array $files): array
52
52
return $ handledFiles ;
53
53
}
54
54
55
- public function getFile (string $ fileId = null ): ?UploadedFile
55
+ public function getFile (? string $ fileId = null ): ?UploadedFile
56
56
{
57
57
if (is_null ($ fileId )) {
58
58
return null ;
You can’t perform that action at this time.
0 commit comments