Skip to content

--output-format=json && --no-diffs shows 0 files changed despite applying changes #9582

@peterfox

Description

@peterfox

Bug Report

When you run ./vendor/bin/rector --output-format=json --no-diffs the format of the output changes to show 0 changes despite file changes being made.

Subject Details
Rector version Rector 2.3.0
PHP version PHP 8.5.1

Minimal PHP Code Causing Issue

Doesn't appear to matter what code. Any applied rules should cause this.

Expected Behaviour

When I use the output I would expect to see:

{
    "totals": {
        "changed_files": 1,
        "errors": 0
    }
}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions