Skip to content

Commit ca09803

Browse files
loru88fabpot
authored andcommitted
[Validator] added magic method __isset() to File Constraint class
1 parent 585426b commit ca09803

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Constraints/File.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,15 @@ public function __get($option)
8888
return parent::__get($option);
8989
}
9090

91+
public function __isset($option)
92+
{
93+
if ('maxSize' === $option) {
94+
return true;
95+
}
96+
97+
return parent::__isset($option);
98+
}
99+
91100
private function normalizeBinaryFormat($maxSize)
92101
{
93102
$sizeInt = (int) $maxSize;

0 commit comments

Comments
 (0)