diff --git a/framework/yii/helpers/BaseConsole.php b/framework/yii/helpers/BaseConsole.php index 6796283..3f11031 100644 --- a/framework/yii/helpers/BaseConsole.php +++ b/framework/yii/helpers/BaseConsole.php @@ -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;