Skip to content

Commit

Permalink
Mark PhoneNumber validator class as deprecated
Browse files Browse the repository at this point in the history
The PhoneNumber class in src/Validator/ has been marked as deprecated. This class is scheduled for removal in the version 3.0.0. It is recommended to use Laminas\I18n\PhoneNumber\Validator\PhoneNumber instead.

Fixes #91

Signed-off-by: Frank Brückner <[email protected]>
  • Loading branch information
froschdesign committed May 18, 2024
1 parent b3259ac commit a1bf098
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Validator/PhoneNumber.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@
use function strtoupper;
use function substr;

/**
* @deprecated This class is deprecated and will be removed in v3.0.0
* Use Laminas\I18n\PhoneNumber\Validator\PhoneNumber instead:
* https://github.com/laminas/laminas-i18n-phone-number
*/
class PhoneNumber extends AbstractValidator
{
public const NO_MATCH = 'phoneNumberNoMatch';
Expand Down

0 comments on commit a1bf098

Please sign in to comment.