src/Type/UuidType.php
public function guard($value, Field $field)
    {
        Assertion::isInstanceOf($value, UuidIdentifier::class, null, $field->getName());
        if ($field->hasClassName()) {
            Assertion::isInstanceOf($value, $field->getClassName(), null, $field->getName());
        }
    }
public function guard($value, Field $field)
    {
        Assertion::isInstanceOf($value, UuidIdentifier::class, null, $field->getName());
        if ($field->hasClassName()) {
            Assertion::isInstanceOf($value, $field->getClassName(), null, $field->getName());
        }
    }
{@inheritdoc}