From 3f9bd3127e39abb66fefbec39671a08901b4d525 Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Thu, 6 Jun 2024 21:52:00 +0200 Subject: [PATCH] fix: apply `strict` parameter correctly Context: https://github.com/loophp/tin/pull/39#issuecomment-2153290579 --- src/TIN.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TIN.php b/src/TIN.php index de616a6..ddc9f7d 100644 --- a/src/TIN.php +++ b/src/TIN.php @@ -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), ]; } }