Skip to content

Chore: apply ExplicitNullableParamTypeRector rule #3438

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

Conversation

zigzagdev
Copy link

@zigzagdev zigzagdev commented Aug 5, 2025

Checklist

  • Add tests and ensure they pass

=> I run rector test and attach my test results.
スクリーンショット 2025-08-05 17 31 13
スクリーンショット 2025-08-05 17 31 21

@zigzagdev zigzagdev requested review from a team as code owners August 5, 2025 08:21
@github-actions github-actions bot added the docs label Aug 5, 2025
Copy link
Member

@GromNaN GromNaN left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @zigzagdev, I appreciate your willingness to contribute to the project, but these changes are not relevant. I'm closing.

@@ -16,6 +17,9 @@
])
->withPhpSets()
->withTypeCoverageLevel(0)
->withRules([
ExplicitNullableParamTypeRector::class,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This rule did not fix anything in the codebase. The explicit nullable params are already fixed by phpcs.

Comment on lines +72 to +73
private readonly Database $database,
private readonly bool $softDelete,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need to protect private properties with readonly, their usage is internal to this class.

@GromNaN GromNaN closed this Aug 5, 2025
@zigzagdev zigzagdev deleted the feature/add-rule-to-rector branch August 5, 2025 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants