Symfony nested constraints don't work properly – PHP
I came across a strange problem with Symfony validation. Seems that "nested" constraints don't work properly. For example, I create a string variable $data which needs to be validated. $data = 'string'; $constraint = new AssertType('integer'); $violations = $validator->validate($data, $constraint);…