8000 Custom styles are not processed in question prompt · Issue #39946 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
Custom styles are not processed in question prompt #39946
Closed
@Chi-teck

Description

@Chi-teck

Symfony version(s) affected: 5.1.9+

Description
This probably was broken in #38991

How to reproduce

$input = new ArgvInput();
$output = new ConsoleOutput();

$style = new OutputFormatterStyle('white', 'blue', ['bold']);
$output->getFormatter()->setStyle('title', $style);

$output->getErrorOutput()->writeln('<title>This is still formatted.</title>');

$question = new Question('<title>This is no longer formatted.</title>');
(new QuestionHelper())->ask($input, $output, $question);

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0