Closed axyr closed 6 years ago
->checked($this->getFieldValue($this->name, $this->selectedOption === $radio->getValue()))
This wont work :
$options = array [1,2,3]; $checked = "1";
Ofcourse $checked could be casted to int, but for this situation using === is way to strict and == should be used.
$checked
===
==
Ok. Can you submit a PR against the develop branch?
Should be fixed with 1.6.0. Do not hesitate to re-open with some additional info to reproduce.
->checked($this->getFieldValue($this->name, $this->selectedOption === $radio->getValue()))
This wont work :
Ofcourse
$checked
could be casted to int, but for this situation using===
is way to strict and==
should be used.