Total Complexity | 4 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
16 | class GroupRuleHandler implements RuleHandlerInterface |
||
17 | { |
||
18 | private ?FormatterInterface $formatter; |
||
19 | |||
20 | 6 | public function __construct(?FormatterInterface $formatter = null) |
|
21 | { |
||
22 | 6 | $this->formatter = $formatter ?? new Formatter(); |
|
23 | } |
||
24 | |||
25 | 6 | public function validate(mixed $value, object $rule, ?ValidationContext $context = null): Result |
|
41 | } |
||
42 | } |
||
43 |
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.