Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Console] Add missing VERBOSITY_SILENT case in CommandDataCollector#62294

Merged
nicolas-grekas merged 1 commit into
symfony:7.3from
yoeunes:console-datacollector-silent-verbosity
Nov 4, 2025
Merged

[Console] Add missing VERBOSITY_SILENT case in CommandDataCollector#62294
nicolas-grekas merged 1 commit into
symfony:7.3from
yoeunes:console-datacollector-silent-verbosity

Conversation

@yoeunes
Copy link
Copy Markdown
Contributor

@yoeunes yoeunes commented Nov 4, 2025

Q A
Branch? 7.3
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Issues -
License MIT

This PR fixes a bug in the CommandDataCollector that causes a fatal error.

When running a command with both --profile and --silent (or -q), the CommandDataCollector::collect() method throws an UnhandledMatchError because the VERBOSITY_SILENT (value 8) case is missing from the match statement.

This patch adds the missing OutputInterface::VERBOSITY_SILENT => 'silent' case to resolve the crash.

@yoeunes yoeunes force-pushed the console-datacollector-silent-verbosity branch from 42b96c0 to 4c44765 Compare November 4, 2025 01:21
@nicolas-grekas
Copy link
Copy Markdown
Member

Thank you @yoeunes.

@nicolas-grekas nicolas-grekas merged commit 3bb9d72 into symfony:7.3 Nov 4, 2025
11 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.

4 participants