Fixed return value

Replaced `array()` with `new ConstraintViolationList()`.