Conditions | 1 |
Paths | 1 |
Total Lines | 5 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
20 | public function __construct(array $errors, ?string $message = "", int $code = 400, ?Throwable $previous = null) |
||
21 | { |
||
22 | $this->errors = array_filter($errors, fn($e) => $e instanceof Error); |
||
23 | $message = $message ?? 'Input validation failed' . PHP_EOL . $this->errorsAsString(); |
||
24 | parent::__construct($message, $code, $previous); |
||
25 | } |
||
62 |