Skip to content

Commit 5ec5f40

Browse files
committed
fix merge
1 parent 28c0168 commit 5ec5f40

File tree

1 file changed

+2
-2
lines changed
  • src/Symfony/Component/Validator/Constraints

1 file changed

+2
-2
lines changed

src/Symfony/Component/Validator/Constraints/Image.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class Image extends File
5858
self::CORRUPTED_IMAGE_ERROR => 'CORRUPTED_IMAGE_ERROR',
5959
];
6060

61-
public array|string $mimeTypes = 'image/*';
61+
public array|string $mimeTypes = [];
6262
public ?int $minWidth = null;
6363
public ?int $maxWidth = null;
6464
public ?int $maxHeight = null;
@@ -220,7 +220,7 @@ public function __construct(
220220
$this->allowPortraitMessage = $allowPortraitMessage ?? $this->allowPortraitMessage;
221221
$this->corruptedMessage = $corruptedMessage ?? $this->corruptedMessage;
222222

223-
if (null === $this->mimeTypes && [] === $this->extensions) {
223+
if ([] === $this->mimeTypes && [] === $this->extensions) {
224224
$this->mimeTypes = 'image/*';
225225
}
226226

0 commit comments

Comments
 (0)