laravel/framework — pull request #5260 by mohitmamoria (2014-07-29 09:42:06+00:00)
Title: Fixes the required_if messages if multiple values are passed

When passing in multiple values in `required_if` (like so: `required_if:type,mobile,email`) for a attribute in rules, then the error message always showed errors with the first value ('mobile' in this case) replaced in the message string. This was due to the following code in `Illuminate\Validation\Validator` line `1799`:

```
$parameters[1] = $this->getDisplayableValue($parameters[0], $parameters[1]);
```

But, error can be generated by any value in the rule (by 'mobile' or by 'email'). This pull request fixes the problem and also adds a test to verify the same.