File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/Symfony/Component/Validator/Constraints Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ class Image extends File
58
58
self ::CORRUPTED_IMAGE_ERROR => 'CORRUPTED_IMAGE_ERROR ' ,
59
59
];
60
60
61
- public array |string $ mimeTypes = ' image/* ' ;
61
+ public array |string $ mimeTypes = [] ;
62
62
public ?int $ minWidth = null ;
63
63
public ?int $ maxWidth = null ;
64
64
public ?int $ maxHeight = null ;
@@ -226,7 +226,7 @@ public function __construct(
226
226
$ this ->allowPortraitMessage = $ allowPortraitMessage ?? $ this ->allowPortraitMessage ;
227
227
$ this ->corruptedMessage = $ corruptedMessage ?? $ this ->corruptedMessage ;
228
228
229
- if (null === $ this ->mimeTypes && [] === $ this ->extensions ) {
229
+ if ([] === $ this ->mimeTypes && [] === $ this ->extensions ) {
230
230
$ this ->mimeTypes = 'image/* ' ;
231
231
}
232
232
You can’t perform that action at this time.
0 commit comments