1
0
mirror of https://github.com/danog/dns.git synced 2024-11-30 04:29:06 +01:00

Fix psalm issue

This commit is contained in:
Niklas Keller 2023-01-10 23:36:15 +01:00
parent ab62cb8d92
commit ab3a306db5
No known key found for this signature in database
GPG Key ID: AFA536ABA90C76A6

View File

@ -559,7 +559,7 @@ final class Rfc1035StubDnsResolver implements DnsResolver
return $nameservers;
}
private function shouldRetry(int $code): bool
private function shouldRetry(int|string $code): bool
{
return \in_array($code, [
MessageResponseCodes::SERVER_FAILURE,