Skip to content

Commit

Permalink
ci(rector): Add PHPStan ignore rules to configuration
Browse files Browse the repository at this point in the history
- Add 'phpstan-ignore' and 'phpstan-ignore-next-line' rules
- Update the configuration to suppress specific PHPStan warnings
- Enhance type safety and error handling in the project
  • Loading branch information
guanguans committed Feb 25, 2025
1 parent 987d7e7 commit 4446dfc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@
new ChangeMethodVisibility(HasOptions::class, 'preConfigureOptionsResolver', Visibility::PROTECTED),
])
->withConfiguredRule(RemoveAnnotationRector::class, [
'phpstan-ignore',
'phpstan-ignore-next-line',
'psalm-suppress',
])
->withConfiguredRule(RemoveTraitUseRector::class, [
Expand Down

0 comments on commit 4446dfc

Please sign in to comment.