Skip to content

Commit

Permalink
Merge pull request #32 from clue-labs/php8.1
Browse files Browse the repository at this point in the history
Support PHP 8.1
  • Loading branch information
SimonFrings authored Dec 20, 2021
2 parents 3f4dced + f0b9853 commit 9bd9508
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
strategy:
matrix:
php:
- 8.1
- 8.0
- 7.4
- 7.3
Expand Down
3 changes: 2 additions & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
bootstrap="vendor/autoload.php"
cacheResult="false"
colors="true"
cacheResult="false">
convertDeprecationsToExceptions="true">
<testsuites>
<testsuite name="Ssh Proxy Test Suite">
<directory>./tests/</directory>
Expand Down
2 changes: 1 addition & 1 deletion src/SshSocksConnector.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 9bd9508

Please sign in to comment.