Total Complexity | 10 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
14 | final class MethodRegistrar |
||
15 | { |
||
16 | private array $variableTypes = []; |
||
17 | |||
18 | 41 | public function __construct(private readonly ?Class_ $class) |
|
19 | { |
||
20 | 41 | } |
|
21 | |||
22 | 34 | public function registerClassMethod(ClassMethod $node): void |
|
40 | } |
||
41 | } |
||
42 | } |
||
43 | |||
44 | 7 | public function getVariableTypes(): array |
|
47 | } |
||
48 | } |
||
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.