-
-
Notifications
You must be signed in to change notification settings - Fork 741
Open
Labels
Description
Bug Report
| Subject | Details |
|---|---|
| Rector version | 2.3.6 |
The line number for an error in the Rector report (dry run for example) is wrong. Instead of the actual line number, the line number where the diff starts (so 3 lines above) gets emitted.
This also leads to wrongly placed annotations in the GitHub diff view (when using --output-format github).
Example:
An error (potential refactoring) was detected on line 92, Rector states the file at line 89.
Minimal PHP Code Causing Issue
The line number is not visible within the Rector demo page.
Expected Behaviour
The actual line where the error is should be emitted.
Reactions are currently unavailable