Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / symfony / validator / Constraints / TypeValidator.php
index 5c31e3b38a1b1517ba3607e4e1f2e3d59942ceac..ea7562bfcf9a291573e7007c303b1b1720b2b3ef 100644 (file)
@@ -34,7 +34,7 @@ class TypeValidator extends ConstraintValidator
         }
 
         $type = strtolower($constraint->type);
-        $type = $type == 'boolean' ? 'bool' : $constraint->type;
+        $type = 'boolean' == $type ? 'bool' : $constraint->type;
         $isFunction = 'is_'.$type;
         $ctypeFunction = 'ctype_'.$type;