diff --git a/src/Service/RDAPService.php b/src/Service/RDAPService.php index 6c353ec..2805b27 100644 --- a/src/Service/RDAPService.php +++ b/src/Service/RDAPService.php @@ -313,7 +313,7 @@ readonly class RDAPService 'ldhName' => strtolower($rdapNameserver['ldhName']), ]); - $domainNS = $domain->getNameservers()->findFirst(fn (Nameserver $ns) => $ns->getLdhName() === $rdapNameserver['ldhName']); + $domainNS = $domain->getNameservers()->findFirst(fn (int $key, Nameserver $ns) => $ns->getLdhName() === $rdapNameserver['ldhName']); if (null !== $domainNS) { $nameserver = $domainNS;