This commit is contained in:
Daniil Gentili 2019-12-22 19:09:12 +01:00
commit aa40bb7ddd
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
4 changed files with 7 additions and 8 deletions

View File

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

View File

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

View File

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

View File

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