Skip to content

Commit fa0d271

Browse files
committed
Clarify deprecation of Email constraint without egulias/email-validator
1 parent f316c42 commit fa0d271

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Constraints/Email.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ public function __construct($options = null)
9595
parent::__construct($options);
9696

9797
if ((self::VALIDATION_MODE_STRICT === $this->mode || true === $this->strict) && !class_exists(StrictEmailValidator::class)) {
98-
// throw new LogicException(sprintf('The "egulias/email-validator" component is required to use the "%s" constraint.', __CLASS__));
99-
@trigger_error(sprintf('Using the "%s" constraint without the "egulias/email-validator" component installed is deprecated since Symfony 4.2.', __CLASS__), E_USER_DEPRECATED);
98+
// throw new LogicException(sprintf('The "egulias/email-validator" component is required to use the "%s" constraint in strict mode.', __CLASS__));
99+
@trigger_error(sprintf('Using the "%s" constraint in strict mode without the "egulias/email-validator" component installed is deprecated since Symfony 4.2.', __CLASS__), E_USER_DEPRECATED);
100100
}
101101
}
102102
}

0 commit comments

Comments
 (0)