Skip to content

Commit

Permalink
Use static analysis-compatible annotations for constants
Browse files Browse the repository at this point in the history
  • Loading branch information
BenMorel committed Feb 22, 2023
1 parent caccae0 commit 3188607
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/PhoneNumber.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down Expand Up @@ -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
{
Expand All @@ -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
*/
Expand Down

0 comments on commit 3188607

Please sign in to comment.