Skip to content

Write Issues to Stderr When --quiet Is Set - #449

Merged
taylorotwell merged 1 commit into
laravel:mainfrom
lazerg:fix/430-quiet-flag-shows-issues-on-stderr
Jun 23, 2026
Merged

Write Issues to Stderr When --quiet Is Set#449
taylorotwell merged 1 commit into
laravel:mainfrom
lazerg:fix/430-quiet-flag-shows-issues-on-stderr

Conversation

@lazerg

@lazerg lazerg commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Fixes #430

When running with --quiet, style violations were silently swallowed — --quiet ended up behaving identically to --silent. Mirrors the approach from #437 (writeErrorsToErrorOutput()): routes style issues to stderr instead of stdout when quiet mode is active, so the exit code and empty stdout are preserved while the file list is still available.

Added two tests: quiet with violations (exit 1, stderr has the path), quiet without violations (exit 0, stderr empty).

@lazerg
lazerg force-pushed the fix/430-quiet-flag-shows-issues-on-stderr branch 3 times, most recently from 5b6199d to 0632e40 Compare June 22, 2026 19:55
@lazerg
lazerg force-pushed the fix/430-quiet-flag-shows-issues-on-stderr branch from 0632e40 to 21b2522 Compare June 23, 2026 00:01
@taylorotwell
taylorotwell merged commit 693ebc7 into laravel:main Jun 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[1.x] Error outputs are inconsistent

2 participants