Skip to content

Commit

Permalink
Merge pull request #178 from browner12/select-non-strings
Browse files Browse the repository at this point in the history
cast both operands to string
  • Loading branch information
taylorotwell authored Mar 8, 2017
2 parents b0cf0b4 + 4232ec0 commit 842d858
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Concerns/InteractsWithElements.php
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ public function select($field, $value = null)

else {
foreach ($options as $option) {
if ($option->getAttribute('value') === $value) {
if ((string) $option->getAttribute('value') === (string) $value) {
$option->click();

break;
Expand Down

0 comments on commit 842d858

Please sign in to comment.