bug and media fixes

This commit is contained in:
Dennis Eichhorn 2021-10-29 14:49:55 +02:00
parent 868390a7f3
commit 05066c520e
2 changed files with 5 additions and 2 deletions

View File

@ -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);
}

View File

@ -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());
}