Skip to content

Commit

Permalink
Merge pull request #65 from odolbeau/revert-constraint-update
Browse files Browse the repository at this point in the history
Revert constraint update
  • Loading branch information
Olivier Dolbeau authored Jan 22, 2021
2 parents 5b003cb + 13f4624 commit 768f966
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ Changelog
Unreleased
----------

3.3.2
-----

* Revert "Improve `PhoneNumber` constraint"

3.3.1
-----

Expand Down
9 changes: 0 additions & 9 deletions src/Validator/Constraints/PhoneNumber.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,6 @@ class PhoneNumber extends Constraint
public $type = self::ANY;
public $defaultRegion = null;

/**
* @param array|string $type
*/
public function __construct($type = self::ANY, ?string $defaultRegion = null)
{
$this->type = $type;
$this->defaultRegion = $defaultRegion;
}

public function getType(): ?string
{
@trigger_error(__METHOD__.' is deprecated and will be removed in 4.0. Use "getTypes" instead.', \E_USER_DEPRECATED);
Expand Down

0 comments on commit 768f966

Please sign in to comment.