Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Convert questions to a string #54

Merged
merged 2 commits into from
Mar 21, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/ComponentInstaller.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
use Zend\ComponentInstaller\Injector\AbstractInjector;
use Zend\ComponentInstaller\Injector\ConfigInjectorChain;
use Zend\ComponentInstaller\Injector\InjectorInterface;
use Zend\ComponentInstaller\Injector\NoopInjector;

/**
* If a package represents a component module, update the application configuration.
Expand Down Expand Up @@ -449,7 +448,7 @@ private function promptForConfigOption(
$ask[] = sprintf(' Make your selection (default is <comment>%d</comment>):', $default);

while (true) {
$answer = $this->io->ask($ask, $default);
$answer = $this->io->ask(implode($ask), $default);

if (is_numeric($answer) && isset($options[(int) $answer])) {
$injector = $options[(int) $answer]->getInjector();
Expand All @@ -474,7 +473,7 @@ private function promptToRememberOption(Injector\InjectorInterface $injector, $p
$ask = ["\n <question>Remember this option for other packages of the same type? (Y/n)</question>"];

while (true) {
$answer = strtolower($this->io->ask($ask, 'y'));
$answer = strtolower($this->io->ask(implode($ask), 'y'));

switch ($answer) {
case 'y':
Expand Down
Loading