Skip to content

Commit

Permalink
Typed properties
Browse files Browse the repository at this point in the history
  • Loading branch information
BenMorel committed Feb 23, 2023
1 parent 4fd7ae6 commit 6286a21
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/PhoneNumber.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace Brick\PhoneNumber;

use JsonSerializable;
use libphonenumber;
use libphonenumber\geocoding\PhoneNumberOfflineGeocoder;
use libphonenumber\NumberParseException;
use libphonenumber\PhoneNumberUtil;
Expand All @@ -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;
}
Expand Down

0 comments on commit 6286a21

Please sign in to comment.