From e5f93c8cdb17e2491d0a996cf25947ca65ab6bd4 Mon Sep 17 00:00:00 2001 From: Benjamin Morel Date: Sat, 23 Dec 2023 01:17:08 +0100 Subject: [PATCH] Explicitly implement Stringable --- src/PhoneNumber.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/PhoneNumber.php b/src/PhoneNumber.php index 0f3e81c..cf41662 100644 --- a/src/PhoneNumber.php +++ b/src/PhoneNumber.php @@ -5,6 +5,7 @@ namespace Brick\PhoneNumber; use JsonSerializable; +use Stringable; use libphonenumber; use libphonenumber\geocoding\PhoneNumberOfflineGeocoder; use libphonenumber\NumberParseException; @@ -13,7 +14,7 @@ /** * A phone number. */ -final class PhoneNumber implements JsonSerializable +final class PhoneNumber implements Stringable, JsonSerializable { /** * The underlying PhoneNumber object from libphonenumber.