Skip to content

Commit

Permalink
handle (empty) phone elements
Browse files Browse the repository at this point in the history
  • Loading branch information
mathielen committed Jan 15, 2025
1 parent 8cb6420 commit eb7adca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CXml/Model/Phone.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function getTelephoneNumberAsString(): ?string
$telephoneNumber = $this->telephoneNumber->getNumber();
$extension = null === $this->telephoneNumber->getExtension() ? '' : ' -' . $this->telephoneNumber->getExtension();

if ($telephoneNumber === '') {
if ('' === $telephoneNumber) {
return null;
}

Expand Down

0 comments on commit eb7adca

Please sign in to comment.