Skip to content

Commit

Permalink
Merge branch '4.0' into 4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
robbieaverill committed Jun 8, 2018
2 parents 115652f + 4f8fcae commit 228a35b
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 228a35b

Please sign in to comment.