Skip to content

Commit

Permalink
Fix strick mode in getTIN function
Browse files Browse the repository at this point in the history
  • Loading branch information
ortegafernando authored Jun 8, 2024
1 parent e2ca568 commit 5613450
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/CountryHandler/CountryHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,7 @@ final public function __construct(string $tin = '')

public function getTIN(): string
{
if (null !== $string = preg_replace('#[^[:alnum:]\-+]#u', '', $this->tin)) {
return strtoupper($string);
}

return '';
return strtoupper($this->tin);
}

final public static function supports(string $country): bool
Expand Down

0 comments on commit 5613450

Please sign in to comment.