You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -170,12 +172,12 @@ public function validate($value, Constraint $constraint)
170
172
}
171
173
172
174
if ($constraint->mimeTypes) {
173
-
if (!$valueinstanceof FileObject) {
174
-
$value = newFileObject($value);
175
+
if (!class_exists(MimeTypes::class)) {
176
+
thrownewLogicException('You cannot validate the mime-type of files as the Mime component is not installed. Try running "composer require symfony/mime".');
0 commit comments