updated streamline-setup v2

This commit is contained in:
2025-01-15 08:53:49 -08:00
committed by alec.turner
parent a2ce9248f0
commit 4b569f81b0
20228 changed files with 2932048 additions and 63204 deletions
@@ -27,9 +27,9 @@ final class Question
*/
private SymfonyQuestionHelper $helper;
public function __construct(SymfonyQuestionHelper $helper = null)
public function __construct(?SymfonyQuestionHelper $helper = null)
{
$this->helper = $helper ?? new QuestionHelper();
$this->helper = $helper ?? new QuestionHelper;
}
/**
@@ -37,7 +37,7 @@ final class Question
*/
public static function setStreamableInput(StreamableInputInterface|null $streamableInput): void
{
self::$streamableInput = $streamableInput ?? new ArgvInput();
self::$streamableInput = $streamableInput ?? new ArgvInput;
}
/**
@@ -45,7 +45,7 @@ final class Question
*/
public static function getStreamableInput(): StreamableInputInterface
{
return self::$streamableInput ??= new ArgvInput();
return self::$streamableInput ??= new ArgvInput;
}
/**
@@ -53,7 +53,7 @@ final class Question
*
* @param iterable<array-key, string>|null $autocomplete
*/
public function ask(string $question, iterable $autocomplete = null): mixed
public function ask(string $question, ?iterable $autocomplete = null): mixed
{
$html = (new HtmlRenderer)->parse($question)->toString();
@@ -73,7 +73,7 @@ final class Question
$currentHelper = $property->isInitialized($output)
? $property->getValue($output)
: new SymfonyQuestionHelper();
: new SymfonyQuestionHelper;
$property->setValue($output, new QuestionHelper);