Skip to content

Conversation

joshbruce
Copy link
Member

@joshbruce joshbruce commented Mar 18, 2023

Scenario:

A select form control where the values are numerical:

$options = [
  '0' => '0'
];

foreach ($options as $value => $content) {
  // int(0)
  var_dump($value);

  // Exception thrown because isSelected expects string
  $this->isSelected($value);
}

Modified the internal loops to pass value to strval() to convert to string type.

@joshbruce joshbruce merged commit 7ab381a into main Mar 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant