Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
20 | public function enterNode(Node $node) |
||
21 | { |
||
22 | if (!$node instanceof Class_) { |
||
23 | return null; |
||
24 | } |
||
25 | return new Class_( |
||
26 | $this->newName, |
||
27 | [ |
||
28 | 'flags' => Class_::MODIFIER_FINAL, |
||
29 | 'extends' => new Name($node->name->toString()), |
||
|
|||
30 | 'implements' => $node->implements, |
||
31 | 'stmts' => $node->stmts, |
||
32 | ], |
||
33 | ['comments' => []] + $node->getAttributes() |
||
34 | ); |
||
37 |
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.