From aeadd4db1c0a1d60b3cdb06e0544574c3b01b1e6 Mon Sep 17 00:00:00 2001 From: PierreLebedel Date: Thu, 31 Oct 2024 12:31:20 +0100 Subject: [PATCH] fix vCard getX singular --- src/Models/AbstractVCard.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Models/AbstractVCard.php b/src/Models/AbstractVCard.php index 0cc65b9..f2e5c9c 100644 --- a/src/Models/AbstractVCard.php +++ b/src/Models/AbstractVCard.php @@ -411,7 +411,7 @@ public function getX(string $name, bool $multiple = false): mixed } // singular field - return $this->getPrefferedField($fields); + return $this->getPrefferedField($fields)?->relevantRender() ?? null; } public function toString(): string