Skip to content

Commit f0b9853

Browse files
committed
Support PHP 8.1
1 parent 3f4dced commit f0b9853

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.github/workflows/ci.yml

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ jobs:
1111
strategy:
1212
matrix:
1313
php:
14+
- 8.1
1415
- 8.0
1516
- 7.4
1617
- 7.3

phpunit.xml.dist

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
55
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
66
bootstrap="vendor/autoload.php"
7+
cacheResult="false"
78
colors="true"
8-
cacheResult="false">
9+
convertDeprecationsToExceptions="true">
910
<testsuites>
1011
<testsuite name="Ssh Proxy Test Suite">
1112
<directory>./tests/</directory>

src/SshSocksConnector.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public function __construct($uri, LoopInterface $loop = null)
7575
}
7676

7777
$args = array();
78-
\parse_str(parse_url($uri, \PHP_URL_QUERY), $args);
78+
\parse_str((string) parse_url($uri, \PHP_URL_QUERY), $args);
7979
if (isset($args['bind'])) {
8080
$parts = parse_url('tcp://' . $args['bind']);
8181
if (!isset($parts['scheme'], $parts['host'], $parts['port']) || @\inet_pton(\trim($parts['host'], '[]')) === false) {

0 commit comments

Comments
 (0)