Skip to content

Commit 2fc1d70

Browse files
Avoid SF deprecation
1 parent 6f74394 commit 2fc1d70

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/EmailChecker/Constraints/NotThrowawayEmailValidator.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
namespace EmailChecker\Constraints;
1313

1414
use EmailChecker\EmailChecker;
15+
use ReturnTypeWillChange;
1516
use Symfony\Component\Validator\Constraint;
1617
use Symfony\Component\Validator\ConstraintValidator;
1718
use Symfony\Component\Validator\Exception\UnexpectedTypeException;
@@ -36,6 +37,7 @@ public function __construct(?EmailChecker $emailChecker = null)
3637
*
3738
* @return void
3839
*/
40+
#[ReturnTypeWillChange]
3941
public function validate($value, Constraint $constraint)
4042
{
4143
if (!$constraint instanceof NotThrowawayEmail) {

0 commit comments

Comments
 (0)