Skip to content

Commit

Permalink
Uri\Http deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
aleswita committed Dec 9, 2024
1 parent 3088887 commit 23340d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
use Amp\Http\HttpMessage;
use Amp\Http\HttpRequest;
use League\Uri;
use League\Uri\UriString;
use Psr\Http\Message\UriInterface;
use function Amp\async;

Expand Down Expand Up @@ -538,7 +539,6 @@ public function isIdempotent(): bool

private function createUriFromString(string $uri): UriInterface
{
/** @psalm-suppress DeprecatedMethod */
return Uri\Http::createFromString($uri);
return Uri\Http::fromComponents(UriString::parse($uri));
}
}

0 comments on commit 23340d4

Please sign in to comment.