diff --git a/src/AttributeValue.php b/src/AttributeValue.php index a523db9..79566e4 100644 --- a/src/AttributeValue.php +++ b/src/AttributeValue.php @@ -36,7 +36,7 @@ public function getLocale(): ?string return $this->locale; } - public function withLocale(string $locale): self + public function withLocale(?string $locale): self { Locale::validate($locale); $attributeValue = clone $this;