Class PHPStan\Fixable\ErrorFixer

final

Applies the fixes of errors to the files on disk in one go, like one round of phpstan analyse --fix.

The fix of an error is applied whole or not at all. It is skipped when it overlaps with a fix of an earlier error or when a file it changes was changed since the analysis. Fixing errors caused by other fixes needs a new analysis, which phpstan analyse --fix runs in rounds.

Methods