Skip to content

Commit

Permalink
Merge pull request #424 from creative-commoners/pulls/4.0/fix-missing…
Browse files Browse the repository at this point in the history
…-locale-error

BUG Don't fail on empty locale
  • Loading branch information
robbieaverill authored Jun 8, 2018
2 parents 2015e02 + 10c209c commit 4f8fcae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/State/FluentState.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function getLocale()
*/
public function setLocale($locale)
{
if (empty($locale) || !is_string($locale)) {
if ($locale && !is_string($locale)) {
throw new InvalidArgumentException("Invalid locale");
}
$this->locale = $locale;
Expand Down

0 comments on commit 4f8fcae

Please sign in to comment.