diff --git a/extensions/composer/Installer.php b/extensions/composer/Installer.php index 9a63106..d8d799f 100644 --- a/extensions/composer/Installer.php +++ b/extensions/composer/Installer.php @@ -57,7 +57,7 @@ class Installer extends LibraryInstaller $this->removePackage($initial); $this->addPackage($target); // ensure the yii2-dev package also provides Yii.php in the same place as yii2 does - if ($package->getName() == 'yiisoft/yii2-dev') { + if ($initial->getName() == 'yiisoft/yii2-dev') { $this->linkYiiBaseFiles(); } }