public function __wakeup() : void { if (\is_object($this->environment) || \is_object($this->debug)) { throw new \BadMethodCallException('Cannot unserialize ' . __CLASS__); } $this->__construct($this->environment, $this->debug); }