protected function initState() { $this->state = new \StdClass(); $this->state->functions = []; $this->state->scope = new \SplObjectStorage(); $this->state->labels = new \SplObjectStorage(); $this->state->seen = new \SplObjectStorage(); }