| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | public function __construct(string $argumentName, array $errors, Exception $previous = null) |
||
| 24 | { |
||
| 25 | $rules = array_map(function (ValidationError $error) { |
||
| 26 | return (string) $error->getTranslatableMessage(); |
||
| 27 | }, $errors); |
||
| 28 | |||
| 29 | parent::__construct($argumentName, "Password doesn't match the following rules: " . implode(', ', $rules), $previous); |
||
| 30 | } |
||
| 31 | } |
||
| 32 |