From 31886072e6ebfe44f027c63dd29d53913fac802b Mon Sep 17 00:00:00 2001 From: Benjamin Morel Date: Wed, 22 Feb 2023 22:28:22 +0100 Subject: [PATCH] Use static analysis-compatible annotations for constants --- src/PhoneNumber.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/PhoneNumber.php b/src/PhoneNumber.php index 21ab294..7e19b82 100644 --- a/src/PhoneNumber.php +++ b/src/PhoneNumber.php @@ -53,8 +53,8 @@ public static function parse(string $phoneNumber, ?string $regionCode = null) : } /** - * @param string $regionCode The region code. - * @param int $phoneNumberType The phone number type, defaults to a fixed line. + * @param string $regionCode The region code. + * @param PhoneNumberType::* $phoneNumberType The phone number type, defaults to a fixed line. * * @return PhoneNumber * @@ -169,7 +169,7 @@ public function isValidNumber() : bool /** * Returns the type of this phone number. * - * @return int One of the PhoneNumberType constants. + * @return PhoneNumberType::* */ public function getNumberType() : int { @@ -179,7 +179,7 @@ public function getNumberType() : int /** * Returns a formatted string representation of this phone number. * - * @param int $format One of the PhoneNumberFormat constants. + * @param PhoneNumberFormat::* $format * * @return string */