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
Copy file name to clipboardExpand all lines: Constraints/Length.php
-7Lines changed: 0 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -57,13 +57,6 @@ public function __construct($options = null)
57
57
58
58
parent::__construct($options);
59
59
60
-
if (null === $this->allowEmptyString) {
61
-
$this->allowEmptyString = true;
62
-
if (null !== $this->min) {
63
-
@trigger_error(sprintf('Using the "%s" constraint with the "min" option without setting the "allowEmptyString" one is deprecated and defaults to true. In 5.0, it will become optional and default to false.', self::class), E_USER_DEPRECATED);
64
-
}
65
-
}
66
-
67
60
if (null === $this->min && null === $this->max) {
68
61
thrownewMissingOptionsException(sprintf('Either option "min" or "max" must be given for constraint %s', __CLASS__), ['min', 'max']);
if (null !== $constraint->min && null === $constraint->allowEmptyString) {
34
+
@trigger_error(sprintf('Using the "%s" constraint with the "min" option without setting the "allowEmptyString" one is deprecated and defaults to true. In 5.0, it will become optional and default to false.', Length::class), E_USER_DEPRECATED);
0 commit comments