Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"amphp/http-client": "^5",
"amphp/socket": "^2.2",
"amphp/websocket": "^2",
"league/uri": "^6.8|^7.1",
"league/uri": "^7.1",
"psr/http-message": "^1|^2",
"revolt/event-loop": "^1"
},
Expand Down
2 changes: 1 addition & 1 deletion src/WebsocketHandshake.php
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ private static function makeUri(PsrUri|string $uri): PsrUri
if (\is_string($uri)) {
try {
/** @psalm-suppress DeprecatedMethod Using deprecated method to support 6.x and 7.x of league/uri */
$uri = Uri\Http::createFromString($uri);
$uri = Uri\Http::new($uri);
} catch (\Exception $exception) {
throw new \ValueError('Invalid Websocket URI provided', 0, $exception);
}
Expand Down
Loading