Commit 8dd8dd8a authored by Sophie Herold's avatar Sophie Herold 🌼

Fix PHP 7.3 deprecation warning

parent b4de29c9
Pipeline #1835 failed with stages
......@@ -34,7 +34,7 @@ class CheckEmail extends Check {
public function __invoke($email) {
$exploded = explode('@', $email);
$exploded[] = idn_to_ascii(array_pop($exploded));
$exploded[] = idn_to_ascii(array_pop($exploded), IDNA_DEFAULT, INTL_IDNA_VARIANT_UTS46);
$addressAscii = implode('@', $exploded);
$valid = filter_var($addressAscii, FILTER_VALIDATE_EMAIL) !== false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment