comparison vendor/symfony/console/Question/ConfirmationQuestion.php @ 14:1fec387a4317

Update Drupal core to 8.5.2 via Composer
author Chris Cannam
date Mon, 23 Apr 2018 09:46:53 +0100
parents 4c8ae668cc8c
children 129ea1e6d783
comparison
equal deleted inserted replaced
13:5fb285c0d0e3 14:1fec387a4317
19 class ConfirmationQuestion extends Question 19 class ConfirmationQuestion extends Question
20 { 20 {
21 private $trueAnswerRegex; 21 private $trueAnswerRegex;
22 22
23 /** 23 /**
24 * Constructor.
25 *
26 * @param string $question The question to ask to the user 24 * @param string $question The question to ask to the user
27 * @param bool $default The default answer to return, true or false 25 * @param bool $default The default answer to return, true or false
28 * @param string $trueAnswerRegex A regex to match the "yes" answer 26 * @param string $trueAnswerRegex A regex to match the "yes" answer
29 */ 27 */
30 public function __construct($question, $default = true, $trueAnswerRegex = '/^y/i') 28 public function __construct($question, $default = true, $trueAnswerRegex = '/^y/i')