diff --git a/src/Plugin.php b/src/Plugin.php index 1abdcca..6608a26 100644 --- a/src/Plugin.php +++ b/src/Plugin.php @@ -109,9 +109,9 @@ public function onPostAutoloadDump(Event $event) $this->builder->buildAllConfigs($this->files); $save = $this->files; - foreach ($this->alternatives as $alt => $files) { + foreach ($this->alternatives as $name => $files) { $this->files = $save; - $builder = $this->builder->createAlternative($alt); + $builder = $this->builder->createAlternative($name); $this->addFiles($this->rootPackage, $files); $builder->buildAllConfigs($this->files); }