Skip to content

Commit

Permalink
Use league/uri 7.x API in example
Browse files Browse the repository at this point in the history
  • Loading branch information
kelunik committed Aug 19, 2023
1 parent 149a17b commit 973c1b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/simple-http-client.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
exit(1);
}

$uri = Http::createFromString($argv[1]);
$uri = Http::new($argv[1]);
$host = $uri->getHost();
$port = $uri->getPort() ?? ($uri->getScheme() === 'https' ? 443 : 80);
$path = $uri->getPath() ?: '/';
Expand Down

0 comments on commit 973c1b2

Please sign in to comment.