| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 32 | 25 | public function __construct(string $target, ConstraintViolationListInterface $errors) |
|
| 33 | { |
||
| 34 | 25 | parent::__construct( |
|
| 35 | 25 | JSON::encode( |
|
| 36 | 25 | array_map( |
|
| 37 | 25 | static fn (ConstraintViolationInterface $error): ValidatorError => |
|
| 38 | 25 | new ValidatorError($error, $target), |
|
| 39 | 25 | iterator_to_array($errors), |
|
| 40 | 25 | ), |
|
| 50 |