Skip to content

Commit 62d6b80

Browse files
committed
Support PHP 8.1
1 parent 01b4151 commit 62d6b80

4 files changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
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

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"react/event-loop": "^1.2",
1010
"react/promise": "^2.7",
1111
"react/promise-stream": "^1.1",
12-
"react/promise-timer": "^1.5",
12+
"react/promise-timer": "^1.8",
1313
"react/socket": "^1.9"
1414
},
1515
"require-dev": {

src/Io/LazyConnection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class LazyConnection extends EventEmitter implements ConnectionInterface
3434
public function __construct(Factory $factory, $uri, LoopInterface $loop)
3535
{
3636
$args = [];
37-
\parse_str(\parse_url($uri, \PHP_URL_QUERY), $args);
37+
\parse_str((string) \parse_url($uri, \PHP_URL_QUERY), $args);
3838
if (isset($args['idle'])) {
3939
$this->idlePeriod = (float)$args['idle'];
4040
}

tests/ResultQueryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public function testSelectStaticValueWillBeReturnedAsIs($value)
6868
*/
6969
public function testSelectStaticValueWillBeReturnedAsIsWithNoBackslashEscapesSqlMode($value)
7070
{
71-
if (strpos($value, '\\') !== false) {
71+
if ($value !== null && strpos($value, '\\') !== false) {
7272
// TODO: strings such as '%\\' work as-is when string contains percent?!
7373
$this->markTestIncomplete('Escaping backslash not supported when using NO_BACKSLASH_ESCAPES SQL mode');
7474
}

0 commit comments

Comments
 (0)