diff --git a/src/Generator.php b/src/Generator.php index 948eb92..a582200 100644 --- a/src/Generator.php +++ b/src/Generator.php @@ -54,9 +54,9 @@ class Generator // Find the drivers to add to the extra/interfaces $this->detectDrivers(); - $this->extra = array_merge($this->extra, $this->config->get('ide-helper.extra')); - $this->magic = array_merge($this->magic, $this->config->get('ide-helper.magic')); - $this->interfaces = array_merge($this->interfaces, $this->config->get('ide-helper.interfaces')); + $this->extra = array_merge($this->extra, $this->config->get('ide-helper.extra'), []); + $this->magic = array_merge($this->magic, $this->config->get('ide-helper.magic'), []); + $this->interfaces = array_merge($this->interfaces, $this->config->get('ide-helper.interfaces'), []); // Make all interface classes absolute foreach ($this->interfaces as &$interface) { $interface = '\\' . ltrim($interface, '\\');