You've already forked symfony-validator
awesome
This commit is contained in:
@@ -219,7 +219,6 @@ class Validator
|
|||||||
$attribute = $args[0];
|
$attribute = $args[0];
|
||||||
$storage = $args[1];
|
$storage = $args[1];
|
||||||
|
|
||||||
// handle
|
|
||||||
if (!$this->hasFile($attribute))
|
if (!$this->hasFile($attribute))
|
||||||
{
|
{
|
||||||
$this->error($attribute, 'required');
|
$this->error($attribute, 'required');
|
||||||
@@ -235,6 +234,7 @@ class Validator
|
|||||||
$this->error($attribute, 'file_mime_type');
|
$this->error($attribute, 'file_mime_type');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user