Commit f716bdd7 by Carsten Brandt

Fixed option merging in Console::prompt()

defaults overided settings
parent 6eb9785d
...@@ -700,14 +700,14 @@ class BaseConsole ...@@ -700,14 +700,14 @@ class BaseConsole
public static function prompt($text, $options = array()) public static function prompt($text, $options = array())
{ {
$options = ArrayHelper::merge( $options = ArrayHelper::merge(
$options,
array( array(
'required' => false, 'required' => false,
'default' => null, 'default' => null,
'pattern' => null, 'pattern' => null,
'validator' => null, 'validator' => null,
'error' => 'Invalid input.', 'error' => 'Invalid input.',
) ),
$options
); );
$error = null; $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