Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / egulias / email-validator / src / Egulias / EmailValidator / EmailValidator.php
index 69ff5fc1a6ed68f02b932780752d647c094d0a0d..9733b6e2b5522cd06f3ab125024edf1b011140a6 100644 (file)
@@ -133,7 +133,7 @@ class EmailValidator implements EmailValidatorInterface
             return false;
         }
 
-        return ($strict ? (!$this->hasWarnings() && !$dnsProblemExists) : true);
+        return !($dnsProblemExists || $strict && $this->hasWarnings());
     }
 
     /**