Skip to content

Commit

Permalink
Drop support for league/uri 6.x
Browse files Browse the repository at this point in the history
  • Loading branch information
trowski committed Jan 19, 2025
1 parent 3754621 commit 8833f66
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@
"amphp/dns": "^2",
"amphp/byte-stream": "^2",
"kelunik/certificate": "^1.1",
"league/uri": "^6.5 | ^7",
"league/uri-interfaces": "^2.3 | ^7",
"revolt/event-loop": "^1 || ^0.2"
"league/uri": "^7",
"league/uri-interfaces": "^7",
"revolt/event-loop": "^1"
},
"require-dev": {
"phpunit/phpunit": "^9",
Expand Down
3 changes: 1 addition & 2 deletions src/Socks5SocketConnector.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@ public static function tunnel(
throw new \Error("Both or neither username and password must be provided!");
}

/** @psalm-suppress DeprecatedMethod */
$uri = Uri::createFromString($target);
$uri = Uri::new($target);

$read = function (int $length) use ($socket, $cancellation): string {
\assert($length > 0);
Expand Down

0 comments on commit 8833f66

Please sign in to comment.