Skip to content

Commit aa40bb7

Browse files
committed
merge
2 parents 3e78294 + 968175e commit aa40bb7

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

.travis.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@ sudo: false
33
language: php
44

55
php:
6-
- 7.0
7-
- 7.1
8-
- 7.2
9-
- 7.3
6+
# - 7.2
7+
# - 7.3
8+
- 7.4
109
- nightly
1110

1211
matrix:

lib/Internal/HttpsSocket.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ protected function resolve(Message $message): Promise
7070
$request->setBody($data);
7171
$request->setHeader('content-type', 'application/dns-message');
7272
$request->setHeader('accept', 'application/dns-message');
73-
$request->setHeader('content-length', strlen($data));
73+
$request->setHeader('content-length', \strlen($data));
7474
$request->setHeaders($this->nameserver->getHeaders());
7575
break;
7676
case Nameserver::GOOGLE_JSON:

lib/Internal/Socket.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ private function error(\Throwable $exception)
146146
$message = "Unexpected error during resolution: ".$exception->getMessage();
147147
$exception = new DnsException($message, 0, $exception);
148148
}
149-
149+
150150
$pending = $this->pending;
151151
$this->pending = [];
152152

lib/Rfc8484StubResolver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ public function resolve(string $name, int $typeRestriction = null): Promise
153153
foreach ($reason->getReasons() as $reason) {
154154
$reasons []= $reason->getMessage();
155155
}
156-
$error .= " (".implode(", ", $reasons).")";
156+
$error .= " (".\implode(", ", $reasons).")";
157157
}
158158
$errors[] = $error;
159159
}
@@ -263,7 +263,7 @@ public function query(string $name, int $type): Promise
263263
$attemptDescription = [];
264264

265265
$exceptions = [];
266-
266+
267267
while ($attempt < $attempts) {
268268
try {
269269
$attemptDescription[] = $nameserver;

0 commit comments

Comments
 (0)