diff --git a/src/Symfony/Component/Form/ChoiceList/ArrayChoiceList.php b/src/Symfony/Component/Form/ChoiceList/ArrayChoiceList.php index b1e6b3bf06b5c..6b0c8f5c65062 100644 --- a/src/Symfony/Component/Form/ChoiceList/ArrayChoiceList.php +++ b/src/Symfony/Component/Form/ChoiceList/ArrayChoiceList.php @@ -233,7 +233,7 @@ private function castableToString(array $choices, array &$cache = array()) } continue; - } elseif (!is_scalar($choice)) { + } elseif (!is_scalar($choice) || false === $choice) { return false; } elseif (isset($cache[(string) $choice])) { return false;
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: