diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7a9676b..10341d1 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/composer.json b/composer.json index 3f8c7af..c1752cc 100644 --- a/composer.json +++ b/composer.json @@ -16,7 +16,7 @@ "evenement/evenement": "^3.0 || ^2.0 || ^1.0", "react/event-loop": "^1.2", "react/promise": "^2.0 || ^1.1", - "react/promise-timer": "^1.5", + "react/promise-timer": "^1.8", "react/socket": "^1.9" }, "require-dev": { diff --git a/phpunit.xml.dist b/phpunit.xml.dist index e19a12c..5093fa5 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -4,8 +4,9 @@ + convertDeprecationsToExceptions="true"> ./tests/ diff --git a/src/LazyClient.php b/src/LazyClient.php index 42aceca..d82b257 100644 --- a/src/LazyClient.php +++ b/src/LazyClient.php @@ -31,7 +31,7 @@ class LazyClient extends EventEmitter implements Client public function __construct($target, Factory $factory, LoopInterface $loop) { $args = array(); - \parse_str(\parse_url($target, \PHP_URL_QUERY), $args); + \parse_str((string) \parse_url($target, \PHP_URL_QUERY), $args); if (isset($args['idle'])) { $this->idlePeriod = (float)$args['idle']; }