Skip to content

Commit

Permalink
taxID validation fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
hadi60 committed May 15, 2023
1 parent 4766f6e commit f39429f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Moadian.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function inquiryByReferenceNumbers(array $refNums)

public function getEconomicCodeInformation(string $taxID)
{
if (strlen($taxID)>9 || strlen($taxID) < 12)
if (strlen($taxID) < 9 || strlen($taxID) >= 12)
throw new MoadianException('$taxID must be between 10 and 11 digits');

return $this->client->getEconomicCodeInformation($taxID);
Expand Down

0 comments on commit f39429f

Please sign in to comment.