Skip to content

Commit 8833f66

Browse files
committed
Drop support for league/uri 6.x
1 parent 3754621 commit 8833f66

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

composer.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@
3636
"amphp/dns": "^2",
3737
"amphp/byte-stream": "^2",
3838
"kelunik/certificate": "^1.1",
39-
"league/uri": "^6.5 | ^7",
40-
"league/uri-interfaces": "^2.3 | ^7",
41-
"revolt/event-loop": "^1 || ^0.2"
39+
"league/uri": "^7",
40+
"league/uri-interfaces": "^7",
41+
"revolt/event-loop": "^1"
4242
},
4343
"require-dev": {
4444
"phpunit/phpunit": "^9",

src/Socks5SocketConnector.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,7 @@ public static function tunnel(
7777
throw new \Error("Both or neither username and password must be provided!");
7878
}
7979

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

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

0 commit comments

Comments
 (0)