mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-12 03:01:32 +00:00
updated streamline-setup v2
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user