From 6286a218375a46a6f4d0fd361323f22313882814 Mon Sep 17 00:00:00 2001 From: Benjamin Morel Date: Thu, 23 Feb 2023 22:41:31 +0100 Subject: [PATCH] Typed properties --- src/PhoneNumber.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/PhoneNumber.php b/src/PhoneNumber.php index 7e19b82..101110a 100644 --- a/src/PhoneNumber.php +++ b/src/PhoneNumber.php @@ -5,6 +5,7 @@ namespace Brick\PhoneNumber; use JsonSerializable; +use libphonenumber; use libphonenumber\geocoding\PhoneNumberOfflineGeocoder; use libphonenumber\NumberParseException; use libphonenumber\PhoneNumberUtil; @@ -16,17 +17,13 @@ final class PhoneNumber implements JsonSerializable { /** * The underlying PhoneNumber object from libphonenumber. - * - * @var \libphonenumber\PhoneNumber */ - private $phoneNumber; + private libphonenumber\PhoneNumber $phoneNumber; /** * Private constructor. Use a factory method to obtain an instance. - * - * @param \libphonenumber\PhoneNumber $phoneNumber */ - private function __construct(\libphonenumber\PhoneNumber $phoneNumber) + private function __construct(libphonenumber\PhoneNumber $phoneNumber) { $this->phoneNumber = $phoneNumber; }