diff --git a/src/Plugin.php b/src/Plugin.php index e0aaf34..90ac540 100644 --- a/src/Plugin.php +++ b/src/Plugin.php @@ -215,10 +215,10 @@ public function assembleConfigs() } } - protected function assembleFile($name, $configs) + protected function assembleFile($name, array $configs) { $this->data[$name] = call_user_func_array([Helper::class, 'mergeConfig'], $configs); - $this->writeFile($name, $this->data[$name]); + $this->writeFile($name, (array) $this->data[$name]); } /**