zendframework/zf2 — pull request #2162 by WalterTamboer (2012-08-13 20:23:56+00:00)
Title: Selected Checkbox

This is needed because the value could be populated from a hydrator for example. Setting the value to the boolean value "true" would fail because "true is not identical to 1" where 1 is the default checked value. The equal operator does the job in such cases.

An alternative to this PR would be to introduce methods to enable or disable a checkbox:
setChecked(bool);
bool isChecked();

and than overload the setValue function in order to always pass a boolean to setChecked.