Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
21 | public function validate($data, array $context = []): ValidationResult |
||
22 | { |
||
23 | $alwaysFalse = |
||
24 | /** |
||
25 | * @param mixed $data |
||
26 | * @psalm-param T $data |
||
27 | * @return false |
||
28 | */ |
||
29 | function ($data): bool { |
||
|
|||
30 | return false; |
||
31 | }; |
||
32 | |||
33 | return $this->validateAssertion($alwaysFalse, $data, $context); |
||
34 | } |
||
36 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.