Skip to content

Commit

Permalink
Merge pull request #99 from inpsyde/fix-static-closure
Browse files Browse the repository at this point in the history
Fix bug in StaticClosure sniff
  • Loading branch information
tfrommen authored Nov 15, 2024
2 parents 8704dd1 + 575f2ba commit ea91b8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Inpsyde/Sniffs/CodeQuality/StaticClosureSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ private function fix(int $position, File $file): void
$fixer = $file->fixer;
$fixer->beginChangeset();

$fixer->replaceToken($position, 'static function');
$fixer->addContentBefore($position, 'static ');

$fixer->endChangeset();
}
Expand Down

0 comments on commit ea91b8d

Please sign in to comment.