Skip to content
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

[Rule] EnsureExplicitNullableTypes #1711

Merged

Conversation

smnandre
Copy link
Contributor

CF #1710

@smnandre
Copy link
Contributor Author

I may need a bit of help to finalize this (not sure if i can do anything regarding CI checks)

Copy link
Collaborator

@alamirault alamirault left a comment

Choose a reason for hiding this comment

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

Thank you @smnandre for this new rule !

I've made some suggestions

docs/rules.md Outdated Show resolved Hide resolved
src/Rule/EnsureExplicitNullableTypes.php Outdated Show resolved Hide resolved
src/Rule/EnsureExplicitNullableTypes.php Outdated Show resolved Hide resolved
@OskarStark
Copy link
Owner

Right now it runs on every RST file line. We should check in the rule if we are in a Php code block.
Please check the inspiration PR

@smnandre
Copy link
Contributor Author

Right now it runs on every RST file line. We should check in the rule if we are in a Php code block. Please check the inspiration PR

Thanks, just needed to understand the lines / number / block logic :)

@OskarStark OskarStark enabled auto-merge (squash) April 14, 2024 19:14
@OskarStark OskarStark merged commit e46d714 into OskarStark:develop Apr 14, 2024
6 of 8 checks passed
OskarStark added a commit that referenced this pull request Apr 14, 2024
* develop:
  New rule `EnsureExplicitNullableTypes` (#1711)
  github-actions(deps): bump stefanzweifel/git-auto-commit-action (#1709)
  github-actions(deps): bump docker/setup-buildx-action (#1708)
  composer(deps-dev): bump phpunit/phpunit from 10.5.16 to 10.5.17 (#1707)
  composer(deps-dev): bump rector/rector from 1.0.3 to 1.0.4 (#1706)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants