mirror of
https://github.com/danog/dns-over-https.git
synced 2024-11-30 04:19:11 +01:00
Psalm fixes
This commit is contained in:
parent
5094c943ca
commit
3535f191e7
@ -387,7 +387,6 @@ final class Rfc8484StubDoHResolver implements DnsResolver
|
||||
$request->setHeader('accept', 'application/dns-json');
|
||||
break;
|
||||
}
|
||||
\assert($request !== null);
|
||||
|
||||
$response = $this->httpClient->request($request, $cancellation);
|
||||
if ($response->getStatus() !== 200) {
|
||||
|
@ -31,7 +31,7 @@ class DoHConfigTest extends AsyncTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @return list<non-empty-list<list{0: DoHNameserver, 1?: DoHNameserverType}>>
|
||||
* @return list{list{list{Amp\DoH\DoHNameserver}}, list{list{Amp\DoH\DoHNameserver}}, list{list{Amp\DoH\DoHNameserver}}, list{list{Amp\DoH\DoHNameserver}}, list{list{Amp\DoH\DoHNameserver}}, list{list{Amp\DoH\DoHNameserver, Amp\DoH\DoHNameserver}}}
|
||||
*/
|
||||
public function provideValidServers(): array
|
||||
{
|
||||
|
@ -19,7 +19,7 @@ class DoHNameserverTest extends AsyncTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @return list<list{0: string, 1?: DoHNameserverType::RFC8484_POST}>
|
||||
* @return list<list{0: string, 1?: DoHNameserverType}>
|
||||
*/
|
||||
public function provideValidServers()
|
||||
{
|
||||
@ -44,7 +44,7 @@ class DoHNameserverTest extends AsyncTestCase
|
||||
}
|
||||
|
||||
/**
|
||||
* @return list<list{0: string, 1?: DoHNameserverType::RFC8484_POST}>
|
||||
* @return list<list{0: string, 1?: DoHNameserverType}>
|
||||
*/
|
||||
public function provideInvalidServers(): array
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user