fix: Domain handle can be absent in RDAP response

This commit is contained in:
Maël Gangloff
2024-07-23 01:34:59 +02:00
parent ac031ebf59
commit 587a030692
3 changed files with 50 additions and 3 deletions

View File

@@ -91,9 +91,10 @@ readonly class RDAPService
$domain
->setTld($tld)
->setLdhName($res['ldhName'])
->setHandle($res['handle'])
->setStatus($res['status']);
if (array_key_exists('handle', $res)) $domain->setHandle($res['handle']);
foreach ($res['events'] as $rdapEvent) {
$eventAction = EventAction::from($rdapEvent['eventAction']);