Open wrabit opened 4 years ago
The issue is caused by type hinting the $value
argument as a string
in the checkbox and radio methods:
Can I ask why? Why not just let the developer pass through their own raw variable. So number can be with or without quotes?
Even though the model value is === 0, it is not pre-selecting the radio when:
<?= $model->has_tickets === 0 ? 'true' : 'false' ?>
Returns 'true';