Skip to content

Commit

Permalink
Suppress deprecation error
Browse files Browse the repository at this point in the history
  • Loading branch information
trowski committed Sep 9, 2023
1 parent 19da59b commit 846373b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/WebsocketHandshake.php
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,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);
} catch (\Exception $exception) {
throw new \ValueError('Invalid Websocket URI provided', 0, $exception);
Expand Down

0 comments on commit 846373b

Please sign in to comment.