public function visitStaticCall(Node $node) : Context
{
$call = $node->children['class'];
if ($call->kind == \ast\AST_NAME) {
$func_name = strtolower($call->children['name']);
if ($func_name == 'parent') {
// Make sure it is not a crazy dynamic parent method call
if (!$node->children['method'] instanceof Node) {
$meth = strtolower($node->children['method']);
if ($meth == '__construct') {
$class = $this->getContextClass();
$class->setIsParentConstructorCalled(true);
}
}
}
}
return $this->context;
}