diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5ec66e0..9e0f721 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,6 +11,7 @@ jobs: strategy: matrix: php: + - 8.1 - 8.0 - 7.4 - 7.3 diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 70474c1..5d73783 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -4,8 +4,9 @@ + convertDeprecationsToExceptions="true"> ./tests/ diff --git a/src/SshSocksConnector.php b/src/SshSocksConnector.php index 6f98436..47e6c7c 100644 --- a/src/SshSocksConnector.php +++ b/src/SshSocksConnector.php @@ -75,7 +75,7 @@ public function __construct($uri, LoopInterface $loop = null) } $args = array(); - \parse_str(parse_url($uri, \PHP_URL_QUERY), $args); + \parse_str((string) parse_url($uri, \PHP_URL_QUERY), $args); if (isset($args['bind'])) { $parts = parse_url('tcp://' . $args['bind']); if (!isset($parts['scheme'], $parts['host'], $parts['port']) || @\inet_pton(\trim($parts['host'], '[]')) === false) {