Skip to content

Commit

Permalink
Make param nullable to reduce mapping complexity
Browse files Browse the repository at this point in the history
  • Loading branch information
joshdifabio committed Oct 31, 2017
1 parent 4e85082 commit 1d89f62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AttributeValue.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1d89f62

Please sign in to comment.