Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Console] Format message in ConsoleSectionOutput::overwrite()#64355

Merged
nicolas-grekas merged 1 commit into
symfony:6.4symfony/symfony:6.4from
nicolas-grekas:fix-console-section-overwrite-formatnicolas-grekas/symfony:fix-console-section-overwrite-formatCopy head branch name to clipboard
May 24, 2026
Merged

[Console] Format message in ConsoleSectionOutput::overwrite()#64355
nicolas-grekas merged 1 commit into
symfony:6.4symfony/symfony:6.4from
nicolas-grekas:fix-console-section-overwrite-formatnicolas-grekas/symfony:fix-console-section-overwrite-formatCopy head branch name to clipboard

Conversation

@nicolas-grekas
Copy link
Copy Markdown
Member

Q A
Branch? 6.4
Bug fix? yes
New feature? no
Deprecations? no
Issues Fix #64333
License MIT

Since #64176, ConsoleSectionOutput::overwrite() builds the content via
addContent() and emits it via parent::doWrite($this->getVisibleContent(), …).
Unlike the previous clear() + writeln() path, this never goes through
Output::write(), which is where the formatter is normally applied — so
<info>foo</> was written verbatim instead of being colorized.

This applies the formatter to each line before storing it, matching what
Output::write() does for the regular path.

@nicolas-grekas nicolas-grekas requested a review from chalasr as a code owner May 24, 2026 08:48
@carsonbot carsonbot added this to the 6.4 milestone May 24, 2026
@nicolas-grekas nicolas-grekas merged commit 36b0d99 into symfony:6.4 May 24, 2026
12 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.