1 | <?php |
||
15 | class Traverser implements Transformer |
||
16 | { |
||
17 | private $traverser; |
||
18 | |||
19 | /** |
||
20 | * Constructor |
||
21 | * |
||
22 | * @param NodeTraverserInterface $traverser Node traverser |
||
23 | */ |
||
24 | 4 | public function __construct(NodeTraverserInterface $traverser) |
|
28 | |||
29 | /** |
||
30 | * Transform class nodes by applying provided class visitors. |
||
31 | * |
||
32 | * @param string $className A fully qualified class name |
||
33 | * @param Node[] $nodes Array of AST nodes |
||
34 | * @param Visitor[] $visitors List of the node visitors |
||
35 | */ |
||
36 | 3 | public function transform(string $className, array $nodes, array $visitors) : array |
|
48 | |||
49 | /** |
||
50 | * Get non qualified name of the class from the fully qualified class name |
||
51 | * eg.: from 'foo\bar\qaz' extract 'qaz' |
||
52 | * |
||
53 | * @param string $className A fully qualified class name |
||
54 | * |
||
55 | * @return string non qualified name of the class |
||
56 | */ |
||
57 | 3 | private function getClassName(string $className) : string |
|
67 | } |
||
68 |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.