diff --git a/src/Stream/ConnectionContext.php b/src/Stream/ConnectionContext.php index c8283ca8b..492cc3de8 100644 --- a/src/Stream/ConnectionContext.php +++ b/src/Stream/ConnectionContext.php @@ -122,7 +122,7 @@ final class ConnectionContext */ public function setUri(string|UriInterface $uri): self { - $this->uri = $uri instanceof UriInterface ? $uri : Http::createFromString($uri); + $this->uri = $uri instanceof UriInterface ? $uri : Http::new($uri); return $this; } /**