*/
public function __construct($options = null)
{
+ if (null === $options) {
+ $options = array();
+ }
+
if (is_array($options) && !isset($options['value'])) {
throw new ConstraintDefinitionException(sprintf(
'The %s constraint requires the "value" option to be set.',