Skip to content

Commit

Permalink
Improve interfaces tools
Browse files Browse the repository at this point in the history
  • Loading branch information
nyamsprod committed Aug 3, 2023
1 parent 44f3e3e commit e932b59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Uri.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
use League\Uri\Exceptions\FileinfoSupportMissing;
use League\Uri\Exceptions\SyntaxError;
use League\Uri\Idna\ConversionFailed;
use League\Uri\Idna\Idna;
use League\Uri\Idna\Converter;
use League\Uri\UriTemplate\TemplateCanNotBeExpanded;
use Psr\Http\Message\UriInterface as Psr7UriInterface;
use SensitiveParameter;
Expand Down Expand Up @@ -337,7 +337,7 @@ private function formatHost(?string $host): ?string
private function formatRegisteredName(string $host): string
{
$formatter = static function (string $host) {
$result = Idna::toAscii($host);
$result = Converter::toAscii($host);

return match (true) {
$result->hasErrors() => throw ConversionFailed::dueToError($host, $result),
Expand Down

0 comments on commit e932b59

Please sign in to comment.