Commit f716bdd7 by Carsten Brandt

Fixed option merging in Console::prompt()

defaults overided settings
parent 6eb9785d
......@@ -700,14 +700,14 @@ class BaseConsole
public static function prompt($text, $options = array())
{
$options = ArrayHelper::merge(
$options,
array(
'required' => false,
'default' => null,
'pattern' => null,
'validator' => null,
'error' => 'Invalid input.',
)
),
$options
);
$error = null;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment