Please check that mb_strlen() is available before to use or use strlen() function instead: https://github.com/symfony/Validator/blob/v2.3.6/Constraints/LengthValidator.php#L40