mirror of
https://github.com/linuxserver/Heimdall.git
synced 2025-12-09 16:33:56 +09:00
Updates to vendors etc
This commit is contained in:
@@ -18,18 +18,18 @@ namespace Symfony\Component\Console\Question;
|
||||
*/
|
||||
class ConfirmationQuestion extends Question
|
||||
{
|
||||
private string $trueAnswerRegex;
|
||||
|
||||
/**
|
||||
* @param string $question The question to ask to the user
|
||||
* @param bool $default The default answer to return, true or false
|
||||
* @param string $trueAnswerRegex A regex to match the "yes" answer
|
||||
*/
|
||||
public function __construct(string $question, bool $default = true, string $trueAnswerRegex = '/^y/i')
|
||||
{
|
||||
public function __construct(
|
||||
string $question,
|
||||
bool $default = true,
|
||||
private string $trueAnswerRegex = '/^y/i',
|
||||
) {
|
||||
parent::__construct($question, $default);
|
||||
|
||||
$this->trueAnswerRegex = $trueAnswerRegex;
|
||||
$this->setNormalizer($this->getDefaultNormalizer());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user