Security update for Core, with self-updated composer
[yaffs-website] / vendor / symfony / validator / Constraints / AbstractComparison.php
index 78db943f74f14260870ca7a477a9b9c0b5fd0912..e20a8f3fb7b050950a362bab25c15e845005548d 100644 (file)
@@ -30,6 +30,10 @@ abstract class AbstractComparison extends Constraint
      */
     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.',