Skip to content

Commit

Permalink
fix vCard getX singular
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreLebedel committed Oct 31, 2024
1 parent 81810f6 commit aeadd4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Models/AbstractVCard.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit aeadd4d

Please sign in to comment.