Various fixes after composer deps update (#638)

This commit is contained in:
Roman Kelesidis 2023-03-20 11:56:32 +07:00 committed by GitHub
commit 12f09f7995
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,7 +13,8 @@ use Egulias\EmailValidator\EmailValidator;
use Egulias\EmailValidator\Validation\DNSCheckValidation;
use Egulias\EmailValidator\Validation\MultipleValidationWithAnd;
use Egulias\EmailValidator\Validation\RFCValidation;
use Egulias\EmailValidator\Validation\SpoofCheckValidation;
use Egulias\EmailValidator\Validation\MessageIDValidation;
use Egulias\EmailValidator\Validation\Extra\SpoofCheckValidation;
/**
* Class Validate
@ -110,6 +111,7 @@ class Validate
$multipleValidations = new MultipleValidationWithAnd([
new RFCValidation(), // Standard RFC-like email validation.
new DNSCheckValidation(), // Will check if there are DNS records that signal that the server accepts emails. This does not entail that the email exists.
new MessageIDValidation(), // Follows RFC2822 for message-id to validate that field, that has some differences in the domain part.
new SpoofCheckValidation() // Will check for multi-utf-8 chars that can signal an erroneous email name.
]);