Total Complexity | 1 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
10 | final class Errors extends ComposingAssertion implements Validation |
||
11 | { |
||
12 | public const MESSAGE = 'errors.invalid-data'; |
||
13 | |||
14 | /** |
||
15 | * @template T |
||
16 | * @psalm-param T $data |
||
17 | * @param mixed $data |
||
18 | * @param array $context |
||
19 | * @return ValidationResult |
||
20 | */ |
||
21 | public function validate($data, array $context = []): ValidationResult |
||
36 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.