Prevents settings from being serialized.
public function __sleep() : array { throw new \LogicException('Settings can not be serialized. This probably means you are serializing an object that has an indirect reference to the Settings object. Adjust your code so that is not necessary.'); }