Psalm fixes

This commit is contained in:
Daniil Gentili 2023-08-20 19:38:08 +02:00
parent 5094c943ca
commit 3535f191e7
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
3 changed files with 3 additions and 4 deletions

View File

@ -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) {

View File

@ -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
{

View File

@ -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
{