Creates a new validator.
If you want to configure the validator, use {@link createValidatorBuilder()} instead.
ValidatorInterface The new validator.
public static function createValidator() {
return self::createValidatorBuilder()
->getValidator();
}