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

feat: PhpCsFixer ruleset - enable nullable_type_declaration_for_default_null_value #7870

Merged

Conversation

mvorisek
Copy link
Contributor

@mvorisek mvorisek commented Mar 8, 2024

I personally do not like this style, but given https://wiki.php.net/rfc/deprecate-implicitly-nullable-types is very likely pass, we have no choice. Also, in Symfony ruleset nullable_type_declaration_for_default_null_value is already enabled.

@mvorisek mvorisek changed the title PhpCsFixer ruleset: enable nullable_type_declaration_for_default_null_value feat: PhpCsFixer ruleset - enable nullable_type_declaration_for_default_null_value Mar 8, 2024
Copy link
Member

@Wirone Wirone left a comment

Choose a reason for hiding this comment

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

I think it's not about liking or not, it is the actual type accepted in those places. Explicit > implicit. I am surprised we had it disabled in our ruleset.

@Wirone Wirone enabled auto-merge (squash) March 9, 2024 08:49
@Wirone Wirone merged commit f256c85 into PHP-CS-Fixer:master Mar 9, 2024
26 checks passed
@keradus
Copy link
Member

keradus commented Mar 9, 2024

cross-linking #7774

@mvorisek mvorisek deleted the phpcsfixer_implicitly_nullable_param branch March 9, 2024 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants