diff --git a/Message/Mail/Email.php b/Message/Mail/Email.php index 7920536c7..ed299fb8b 100644 --- a/Message/Mail/Email.php +++ b/Message/Mail/Email.php @@ -895,7 +895,7 @@ class Email implements MessageInterface $errorcode = 0; if (\defined('INTL_IDNA_VARIANT_UTS46')) { - $punycode = \idn_to_ascii($domain, $errorcode, \INTL_IDNA_VARIANT_UTS46); + $punycode = \idn_to_ascii($domain, $errorcode, INTL_IDNA_VARIANT_UTS46); } else { $punycode = \idn_to_ascii($domain, $errorcode); } diff --git a/tests/System/File/Ftp/DirectoryTest.php b/tests/System/File/Ftp/DirectoryTest.php index 0edd8f02e..ed2477819 100644 --- a/tests/System/File/Ftp/DirectoryTest.php +++ b/tests/System/File/Ftp/DirectoryTest.php @@ -904,7 +904,10 @@ final class DirectoryTest extends \PHPUnit\Framework\TestCase public function testNodeInvalid() : void { $dir = new Directory(new HttpUri(self::BASE . __DIR__ . '/dirtest'), '*', true, self::$con); - $dir?->next()?->next()?->next()?->next()?->next()?->next()?->next(); + + while ($dir->valid()) { + $dir->next(); + } self::assertFalse($dir->valid()); }