Skip to content

Commit

Permalink
fix: apply strict parameter correctly
Browse files Browse the repository at this point in the history
Context: #39 (comment)
  • Loading branch information
drupol committed Jun 6, 2024
1 parent a4f074b commit 3f9bd31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TIN.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ private function parse(string $slug, bool $strict): array

return [
'country' => (string) $country,
'tin' => true === $strict ? $this->normalizeTin((string) $tin) : (string) $tin,
'tin' => true === $strict ? (string) $tin : $this->normalizeTin((string) $tin),
];
}
}

0 comments on commit 3f9bd31

Please sign in to comment.