From 75440f60c9c3596305dc254bcb236aee9df4ea2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Gangloff?= Date: Sun, 29 Dec 2024 00:49:53 +0100 Subject: [PATCH] fix: remove remarks field for IANA entities --- src/Service/RDAPService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Service/RDAPService.php b/src/Service/RDAPService.php index 1802751..c73110e 100644 --- a/src/Service/RDAPService.php +++ b/src/Service/RDAPService.php @@ -509,7 +509,7 @@ readonly class RDAPService $entity->setHandle($rdapEntity['handle']); - if (array_key_exists('remarks', $rdapEntity) && is_array($rdapEntity['remarks']) && !in_array($rdapEntity['handle'], self::IANA_RESERVED_IDS)) { + if (array_key_exists('remarks', $rdapEntity) && is_array($rdapEntity['remarks']) && !is_int($rdapEntity['handle'])) { $entity->setRemarks($rdapEntity['remarks']); }