Skip to content

Commit

Permalink
Insert trim to remove empty values (#5615)
Browse files Browse the repository at this point in the history
* Insert trim to remove empty values

* Expand the comment on the array trim a bit

---------

Co-authored-by: Alexander Ebert <[email protected]>
  • Loading branch information
Cyperghost and dtdesign authored Aug 14, 2023
1 parent 5ea395f commit 2b70552
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,10 @@ public function value($value)
throw new \LogicException("Unreachable");
}

// If the input value is an empty string then the resulting array will
// contain exactly one empty string element.
$this->value = ArrayUtil::trim($this->value);

return $this;
}

Expand Down

0 comments on commit 2b70552

Please sign in to comment.