We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8704dd1 + 575f2ba commit ea91b8dCopy full SHA for ea91b8d
Inpsyde/Sniffs/CodeQuality/StaticClosureSniff.php
@@ -90,7 +90,7 @@ private function fix(int $position, File $file): void
90
$fixer = $file->fixer;
91
$fixer->beginChangeset();
92
93
- $fixer->replaceToken($position, 'static function');
+ $fixer->addContentBefore($position, 'static ');
94
95
$fixer->endChangeset();
96
}
0 commit comments