Skip to content

Commit

Permalink
[BUGFIX] Make jsonSerialize compatible with JsonSerializable Interface
Browse files Browse the repository at this point in the history
Resolves: #22
  • Loading branch information
simonschaufi committed Apr 23, 2024
1 parent c096eeb commit 684af13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Classes/PhoneNumber.php
Original file line number Diff line number Diff line change
Expand Up @@ -297,11 +297,11 @@ public function toLibPhoneObject(): ?\libphonenumber\PhoneNumber
/**
* Convert the phone instance into something JSON serializable.
*
* @return string
* @return mixed
* @throws NumberFormatException
* @throws libNumberParseException
*/
public function jsonSerialize(): string
public function jsonSerialize(): mixed
{
return $this->formatE164();
}
Expand Down

0 comments on commit 684af13

Please sign in to comment.