[Validator] added magic method __isset() to File Constraint class
This commit is contained in:
parent
262b4f3b83
commit
9efb76572a
|
@ -88,6 +88,15 @@ class File extends Constraint
|
||||||
return parent::__get($option);
|
return parent::__get($option);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function __isset($option)
|
||||||
|
{
|
||||||
|
if ('maxSize' === $option) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
return parent::__isset($option);
|
||||||
|
}
|
||||||
|
|
||||||
private function normalizeBinaryFormat($maxSize)
|
private function normalizeBinaryFormat($maxSize)
|
||||||
{
|
{
|
||||||
$sizeInt = (int) $maxSize;
|
$sizeInt = (int) $maxSize;
|
||||||
|
|
Reference in New Issue