'space' => 'ctype_space',
'upper' => 'ctype_upper',
'xdigit' => 'ctype_xdigit',
];
/**
* @return void
*/
public function validate(mixed
$value, Constraint
$constraint) { if (!
$constraint instanceof Type
) { throw new UnexpectedTypeException($constraint, Type::
class);
} if (null ===
$value) { return;
} $types =
(array) $constraint->type;
foreach ($types as $type) { $type =
strtolower($type);
if (isset(self::VALIDATION_FUNCTIONS
[$type]) && self::VALIDATION_FUNCTIONS
[$type]($value)) {