From 73ce002da6f3dee4eda9cf418b58e5f614fdf79f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Wed, 8 Jun 2022 16:10:14 +0200 Subject: [PATCH] Suppress PHP 8.1 deprecation for IDN domains The true/punycode library appears to be no longer maintained and is not PHP 8.1 deprecation clean: true/php-punycode#35 Suppress the deprecation warning for now. The library should be replaced in a future version. --- wcfsetup/install/files/lib/system/email/Mailbox.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/email/Mailbox.class.php b/wcfsetup/install/files/lib/system/email/Mailbox.class.php index e75db89079..d350a3f680 100644 --- a/wcfsetup/install/files/lib/system/email/Mailbox.class.php +++ b/wcfsetup/install/files/lib/system/email/Mailbox.class.php @@ -86,7 +86,7 @@ class Mailbox try { // punycode the domain ... - $domain = (new Punycode())->encode($domain); + $domain = @(new Punycode())->encode($domain); } catch (OutOfBoundsException $e) { throw new \DomainException($e->getMessage(), 0, $e); } -- 2.20.1