1 | <?php |
||
23 | class ClassIntrospectionVisitor extends NodeVisitorAbstract |
||
24 | { |
||
25 | /** |
||
26 | * @var array |
||
27 | */ |
||
28 | private $classes; |
||
29 | |||
30 | /** |
||
31 | * @var array |
||
32 | */ |
||
33 | private $ast; |
||
34 | |||
35 | /** |
||
36 | * @var string |
||
37 | */ |
||
38 | private $namespace; |
||
39 | |||
40 | /** |
||
41 | * @var string |
||
42 | */ |
||
43 | private $class; |
||
44 | |||
45 | /** |
||
46 | * @var bool |
||
47 | */ |
||
48 | private $final; |
||
49 | |||
50 | /** |
||
51 | * @var bool |
||
52 | */ |
||
53 | private $abstract; |
||
54 | |||
55 | /** |
||
56 | * @var MethodMetadata[] |
||
57 | */ |
||
58 | private $methods; |
||
59 | |||
60 | /** |
||
61 | * @var string|null |
||
62 | */ |
||
63 | private $parent; |
||
64 | |||
65 | /** |
||
66 | * {@inheritDoc} |
||
67 | * |
||
68 | * Cleans up internal state |
||
69 | * |
||
70 | * @param array $nodes |
||
71 | */ |
||
72 | public function beforeTraverse(array $nodes) |
||
84 | |||
85 | /** |
||
86 | * {@inheritdoc} |
||
87 | * |
||
88 | * @throws \RunOpenCode\AbstractBuilder\Exception\NotSupportedException |
||
89 | */ |
||
90 | public function enterNode(Node $node) |
||
121 | |||
122 | /** |
||
123 | * {@inheritdoc} |
||
124 | */ |
||
125 | public function leaveNode(Node $node) |
||
147 | |||
148 | /** |
||
149 | * @return array |
||
150 | */ |
||
151 | public function getClasses() |
||
155 | } |
||
156 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..