Removed the casting of $this->config = $config since I was literally calling $config in the line below