Skip to content

#489 - execute --output json-stream: encode the output before opening the file - #490

Merged
njoubert-cleverage merged 2 commits into
mainfrom
489
Nov 6, 2026
Merged

njoubert-cleverage merged 2 commits into
mainfrom
489

Conversation

@njoubert-cleverage

Copy link
Copy Markdown
Member

Description

Fixes #489:

  • ExecuteProcessCommand encodes the output (same flags) before opening the --output file: an output that cannot be encoded leaves the existing file as it is;
  • quick start: the --output file is left as it is in this case.

Checked locally: highest dependencies (PHP 8.5.12), with pcov coverage: all tests OK, no risky; PHPStan, PHP-CS-Fixer and Rector OK.

Requirements

  • Documentation updates
    • Reference
    • Cookbooks
    • Changelog
  • Unit tests

Breaking changes

None.

🤖 Generated with Claude Code

… the file

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@njoubert-cleverage
njoubert-cleverage requested a review from a team as a code owner November 6, 2026 13:14
@njoubert-cleverage
njoubert-cleverage merged commit 133d9fe into main Nov 6, 2026
15 checks passed
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.

execute --output with json-stream truncates the existing file when the output cannot be encoded

1 participant