This commit is contained in:
Daniil Gentili 2019-12-13 00:18:38 +01:00
parent 99e1789f7a
commit 7d399256c1
4 changed files with 5 additions and 6 deletions

View File

@ -3,10 +3,9 @@ sudo: false
language: php
php:
- 7.0
- 7.1
- 7.2
- 7.3
- 7.4
- nightly
matrix:

View File

@ -70,7 +70,7 @@ final class HttpsSocket extends Socket
$request->setBody($data);
$request->setHeader('content-type', 'application/dns-message');
$request->setHeader('accept', 'application/dns-message');
$request->setHeader('content-length', strlen($data));
$request->setHeader('content-length', \strlen($data));
$request->setHeaders($this->nameserver->getHeaders());
break;
case Nameserver::GOOGLE_JSON:

View File

@ -146,7 +146,7 @@ abstract class Socket
$message = "Unexpected error during resolution: ".$exception->getMessage();
$exception = new DnsException($message, 0, $exception);
}
$pending = $this->pending;
$this->pending = [];

View File

@ -153,7 +153,7 @@ final class Rfc8484StubResolver implements Resolver
foreach ($reason->getReasons() as $reason) {
$reasons []= $reason->getMessage();
}
$error .= " (".implode(", ", $reasons).")";
$error .= " (".\implode(", ", $reasons).")";
}
$errors[] = $error;
}
@ -263,7 +263,7 @@ final class Rfc8484StubResolver implements Resolver
$attemptDescription = [];
$exceptions = [];
while ($attempt < $attempts) {
try {
$attemptDescription[] = $nameserver;