Skip to content

Commit

Permalink
Strict in_array()
Browse files Browse the repository at this point in the history
  • Loading branch information
BenMorel committed Oct 9, 2017
1 parent 78c077f commit fdc0bba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Element/Select/MultipleSelect.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class MultipleSelect extends Select
public function setValues(array $values) : MultipleSelect
{
foreach ($this->getOptions() as $option) {
$option->setSelected(in_array($option->getValue(), $values));
$option->setSelected(in_array($option->getValue(), $values, true));
}

return $this;
Expand Down

0 comments on commit fdc0bba

Please sign in to comment.