1 | <?php declare(strict_types=1); |
||
9 | final class NodeVisitor extends NodeVisitorAbstract |
||
10 | { |
||
11 | /** @var ParserResult */ |
||
12 | private $result; |
||
13 | |||
14 | /** @var PhpClass|null */ |
||
15 | private $currentClass; |
||
16 | |||
17 | /** @var Printer */ |
||
18 | private $printer; |
||
19 | |||
20 | /** |
||
21 | * @param Printer $printer |
||
22 | * @param ParserResult $result |
||
23 | */ |
||
24 | 11 | public function __construct(Printer $printer, ParserResult $result = null) |
|
29 | |||
30 | 11 | public function getResult(): ParserResult |
|
34 | |||
35 | /** |
||
36 | * {@inheritdoc} |
||
37 | */ |
||
38 | 11 | public function enterNode(Node $node) |
|
50 | |||
51 | /** |
||
52 | * {@inheritdoc} |
||
53 | */ |
||
54 | 11 | public function leaveNode(Node $node) |
|
60 | |||
61 | 11 | private function getSource(Node $node): string |
|
65 | } |
||
66 |
An attempt at access to an undefined property has been detected. This may either be a typographical error or the property has been renamed but there are still references to its old name.
If you really want to allow access to undefined properties, you can define magic methods to allow access. See the php core documentation on Overloading.