Skip to content

Commit 894c711

Browse files
authored
Merge pull request #277 from clue-labs/php8.1
Support PHP 8.1
2 parents 12a880b + 193b3cc commit 894c711

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"react/dns": "^1.8",
3232
"react/event-loop": "^1.2",
3333
"react/promise": "^2.6.0 || ^1.2.1",
34-
"react/promise-timer": "^1.4.0",
34+
"react/promise-timer": "^1.8",
3535
"react/stream": "^1.2"
3636
},
3737
"require-dev": {

phpunit.xml.dist

Lines changed: 2 additions & 1 deletion
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="React Test Suite">
1112
<directory>./tests/</directory>

src/DnsConnector.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ public function connect($uri)
2323
if (\strpos($uri, '://') === false) {
2424
$uri = 'tcp://' . $uri;
2525
$parts = \parse_url($uri);
26-
unset($parts['scheme']);
26+
if (isset($parts['scheme'])) {
27+
unset($parts['scheme']);
28+
}
2729
} else {
2830
$parts = \parse_url($uri);
2931
}

src/HappyEyeBallsConnector.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ public function connect($uri)
3535
if (\strpos($uri, '://') === false) {
3636
$uri = 'tcp://' . $uri;
3737
$parts = \parse_url($uri);
38-
unset($parts['scheme']);
38+
if (isset($parts['scheme'])) {
39+
unset($parts['scheme']);
40+
}
3941
} else {
4042
$parts = \parse_url($uri);
4143
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy