Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/Reports/Code.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ public function generateFileReport($report, File $phpcsFile, $showSources=false,

try {
$phpcsFile->parse();

// Make sure the fixer is aware of the reparsed file to prevent a race-condition
// with the Diff report also re-parsing the file.
$phpcsFile->fixer->startFile($phpcsFile);
} catch (Exception $e) {
// This is a second parse, so ignore exceptions.
// They would have been added to the file's error list already.
Expand Down
Loading