Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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
zigzagdev wants to merge 2 commits into mongodb:5.x from zigzagdev:feature/add-rule-to-rector

Conversation

@zigzagdev
Copy link

@zigzagdev zigzagdev commented Aug 5, 2025
edited
Loading

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

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.

zigzagdev reacted with thumbs up emoji
->withPhpSets()
->withTypeCoverageLevel(0)
->withRules([
ExplicitNullableParamTypeRector::class,
Copy link
Member

@GromNaN GromNaN Aug 5, 2025

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.

zigzagdev reacted with thumbs up emoji
Comment on lines +72 to +73
private readonlyDatabase $database,
private readonlybool $softDelete,
Copy link
Member

@GromNaN GromNaN Aug 5, 2025

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.

zigzagdev reacted with thumbs up emoji
@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

Reviewers

@GromNaN GromNaN GromNaN left review comments

Assignees

No one assigned

Labels

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /