Add Rule: nullable_type_declaration#193
Conversation
|
Thanks @Jubeki but I don't think we should do this. It's true that right now we do this in our own codebase but If people have PHP 8.2 as a default for their project they'll probably want to use Side note: I also think |
|
@driesvints I understand that, I don't think there as currently a rule where
Edit: I took a look at the rule, which I referenced, it also doesn't always enforce the |
|
I'm with @driesvints on this one. Much prefer |
Me too. Also, it's already valid starting with PHP 8.0. PHP 8.2 added support for |
|
FYI: Instead of |
PHP-CS-Fixer Rule: nullable_type_declaration
With the given configuration this will change it like this (Taken from the PHP-CS-Fixer Page):