mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
fix: Domain handle can be absent in RDAP response
This commit is contained in:
@@ -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']);
|
||||
|
||||
Reference in New Issue
Block a user