parentScopeFinder = $parentScopeFinder; $this->nodeUsageFinder = $nodeUsageFinder; } protected function isCurrentContextRead(Expr $expr): bool { $parent = $expr->getAttribute(AttributeKey::PARENT_NODE); if ($parent instanceof Return_) { return true; } throw new NotImplementedYetException(); } }