diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 81387da..38ce90f 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 9b8d694..f814098 100644 --- a/composer.json +++ b/composer.json @@ -9,7 +9,7 @@ "react/event-loop": "^1.2", "react/promise": "^2.7", "react/promise-stream": "^1.1", - "react/promise-timer": "^1.5", + "react/promise-timer": "^1.8", "react/socket": "^1.9" }, "require-dev": { diff --git a/src/Io/LazyConnection.php b/src/Io/LazyConnection.php index 3246a93..3fc58cd 100644 --- a/src/Io/LazyConnection.php +++ b/src/Io/LazyConnection.php @@ -34,7 +34,7 @@ class LazyConnection extends EventEmitter implements ConnectionInterface public function __construct(Factory $factory, $uri, LoopInterface $loop) { $args = []; - \parse_str(\parse_url($uri, \PHP_URL_QUERY), $args); + \parse_str((string) \parse_url($uri, \PHP_URL_QUERY), $args); if (isset($args['idle'])) { $this->idlePeriod = (float)$args['idle']; } diff --git a/tests/ResultQueryTest.php b/tests/ResultQueryTest.php index 3e2953a..2569082 100644 --- a/tests/ResultQueryTest.php +++ b/tests/ResultQueryTest.php @@ -68,7 +68,7 @@ public function testSelectStaticValueWillBeReturnedAsIs($value) */ public function testSelectStaticValueWillBeReturnedAsIsWithNoBackslashEscapesSqlMode($value) { - if (strpos($value, '\\') !== false) { + if ($value !== null && strpos($value, '\\') !== false) { // TODO: strings such as '%\\' work as-is when string contains percent?! $this->markTestIncomplete('Escaping backslash not supported when using NO_BACKSLASH_ESCAPES SQL mode'); }