Total Complexity | 4 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Coverage | 58.33% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | final class EmbeddedHandler implements RuleHandlerInterface |
||
16 | { |
||
17 | 4 | public function __construct( |
|
18 | private ?FormatterInterface $formatter = null |
||
19 | ) { |
||
20 | 4 | $this->formatter = $formatter ?? new Formatter(); |
|
21 | } |
||
22 | |||
23 | 4 | public function validate(mixed $value, object $rule, ValidationContext $context): Result |
|
44 | } |
||
45 | } |
||
46 |
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.