diff --git a/src/BaseConfig.php b/src/BaseConfig.php index a9c7135..6593907 100644 --- a/src/BaseConfig.php +++ b/src/BaseConfig.php @@ -247,7 +247,7 @@ public function clearCache() */ public function __get($key) { - $config = ((object) $this->config[$key]) ?? null; + $config = isset($this->config[$key]) ? (object) $this->config[$key] : null; return $config; } }