We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e84de7f + 81898d6 commit aa409cbCopy full SHA for aa409cb
1 file changed
src/Reports/Code.php
@@ -55,6 +55,10 @@ public function generateFileReport($report, File $phpcsFile, $showSources=false,
55
56
try {
57
$phpcsFile->parse();
58
+
59
+ // Make sure the fixer is aware of the reparsed file to prevent a race-condition
60
+ // with the Diff report also re-parsing the file.
61
+ $phpcsFile->fixer->startFile($phpcsFile);
62
} catch (Exception $e) {
63
// This is a second parse, so ignore exceptions.
64
// They would have been added to the file's error list already.
0 commit comments