| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 1 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 34 | public function getMetadata(): ValidatorMetadata |
||
| 35 | 1 | { |
|
| 36 | return new ValidatorMetadata( |
||
| 37 | __CLASS__, |
||
| 38 | "The field under validation must be present and not empty only if any of the other specified fields are present.", |
||
| 39 | [ |
||
| 40 | new ValidatorArgs( |
||
| 41 | 'fields', |
||
| 42 | '[String]', |
||
| 43 | 'The fields that are required with' |
||
| 44 | ) |
||
| 49 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.