PHPSA\Analyzer\Pass\Expression\VariableVariableUsage::analyzePropertyFetch PHP Method

analyzePropertyFetch() private method

private analyzePropertyFetch ( PhpParser\Node\Expr\PropertyFetch $expr, Context $context ) : boolean
$expr PhpParser\Node\Expr\PropertyFetch
$context PHPSA\Context
return boolean
    private function analyzePropertyFetch(Expr\PropertyFetch $expr, Context $context)
    {
        if ($expr->name instanceof Expr\Variable) {
            $this->notice($context, $expr->name);
            return true;
        }
        return false;
    }