Closed Ektajain closed 10 years ago
For some reason composer was giving me v2.5 of Validator, despite me requiring v2.3...
This error only occurs when validating Length. I have tested several other constraints, such as NotBlank and Email, which are fine.
Line code used for adding constraint: $metadata->addPropertyConstraint('testField', new Assert\Length(array('max' => 2)));
This is from my composer.json:
"require": { "silex/silex": "~1.2", "twig/twig": ">=1.8,<2.0-dev", "symfony/twig-bridge": "~2.3", "cartalyst/sentry": "2.0.*", "illuminate/database": "4.0.*", "ircmaxell/password-compat": "1.0.*", "filp/whoops": "1.*", "symfony/form": "~2.3", "symfony/validator": "~2.3", "symfony/config": "~2.3", "symfony/translation": "~2.3", "symfony/locale": "~2.3", "symfony/security-csrf": "~2.4", "symfony/twig-bridge": "~2.3" }
Wrong Silex, sorry. here this is about silex free website builder not the PHP framework
For some reason composer was giving me v2.5 of Validator, despite me requiring v2.3...
This error only occurs when validating Length. I have tested several other constraints, such as NotBlank and Email, which are fine.
Line code used for adding constraint: $metadata->addPropertyConstraint('testField', new Assert\Length(array('max' => 2)));
This is from my composer.json: