diff --git a/src/Composer/Command/InitCommand.php b/src/Composer/Command/InitCommand.php index 19812fcb0..f78f251f5 100644 --- a/src/Composer/Command/InitCommand.php +++ b/src/Composer/Command/InitCommand.php @@ -457,10 +457,7 @@ EOT $existingPackages[] = $package->getName(); } } - foreach ($requires as $requiredPackage) { - $existingPackages[] = substr($requiredPackage, 0, strpos($requiredPackage, ' ')); - } - unset($composer, $installedRepo, $requiredPackage); + unset($composer, $installedRepo); $io = $this->getIO(); while (null !== $package = $io->ask('Search for a package: ')) {