From ee4044efcdb72724f42e6096efac9cab18b3c573 Mon Sep 17 00:00:00 2001 From: Rob Bast Date: Thu, 30 Apr 2015 12:09:15 +0200 Subject: [PATCH] Adjusted interface to reflect values from Console --- src/Composer/IO/IOInterface.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Composer/IO/IOInterface.php b/src/Composer/IO/IOInterface.php index 0fd63fe4a..7dc9f5a09 100644 --- a/src/Composer/IO/IOInterface.php +++ b/src/Composer/IO/IOInterface.php @@ -123,14 +123,14 @@ interface IOInterface * * @param string|array $question The question to ask * @param callback $validator A PHP callback - * @param bool|integer $attempts Max number of times to ask before giving up (false by default, which means infinite) + * @param null|integer $attempts Max number of times to ask before giving up (default of null means infinite) * @param string $default The default answer if none is given by the user * * @return mixed * * @throws \Exception When any of the validators return an error */ - public function askAndValidate($question, $validator, $attempts = false, $default = null); + public function askAndValidate($question, $validator, $attempts = null, $default = null); /** * Asks a question to the user and hide the answer.