zendframework/zf2 — pull request #4120 by davidwindell (2013-03-26 17:17:15+00:00)
Title: [Validator] Only return unique messages

If you have an input like so;

```
$this->add(array(
'name' => 'email',
'required' => false,
'validators' => array(
array(
'name' => 'EmailAddress',
'options' => array(
'message' => 'That is not a valid email address',
)
),
)
));
```

Users will see (on a form for example);

- That is not a valid email address
- That is not a valid email address
- That is not a valid email address

i.e. the same error three times.

Here we simply return only unique error messages.