Skip to content

Commit

Permalink
Use libphonenumber-for-php-lite instead of libphonenumber-for-php (#248)
Browse files Browse the repository at this point in the history
* Use libphonenumber-for-php-lite instead of libphonenumber-for-php

* Accept null values again

* Update composer.json

* get ready for next release cycle

---------

Co-authored-by: Propaganistas <[email protected]>
  • Loading branch information
bperel and Propaganistas authored Apr 20, 2024
1 parent 2dc9935 commit b7461f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"illuminate/contracts": "^10.0|^11.0",
"illuminate/support": "^10.0|^11.0",
"illuminate/validation": "^10.0|^11.0",
"giggsey/libphonenumber-for-php": "^7.0|^8.0"
"giggsey/libphonenumber-for-php-lite": "^8.13.35"
},
"require-dev": {
"orchestra/testbench": "*",
Expand Down
2 changes: 1 addition & 1 deletion src/PhoneNumber.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class PhoneNumber implements Jsonable, JsonSerializable

public function __construct(?string $number, $country = [])
{
$this->number = $number;
$this->number = is_null($number) ? '': $number;
$this->countries = Arr::wrap($country);
}

Expand Down

0 comments on commit b7461f0

Please sign in to comment.