Skip to content

Commit

Permalink
fix: do not replace "fn" with "static function"
Browse files Browse the repository at this point in the history
Signed-off-by: Thorsten Frommen <info@tfrommen.de>
  • Loading branch information
tfrommen authored Nov 15, 2024
1 parent 8704dd1 commit 575f2ba
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 575f2ba

Please sign in to comment.