public function getGlobalVariableByName(string $name) : Variable { assert($this->hasParentScope(), "No global scope available. This should not happen."); return $this->getParentScope()->getGlobalVariableByName($name); }