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

[4.x] Laravel Pint: Revert nullable_type_declaration_for_default_null_value default #9126

Merged
merged 3 commits into from
Dec 5, 2023

Conversation

duncanmcclean
Copy link
Member

@duncanmcclean duncanmcclean commented Dec 5, 2023

This pull request reverts the config value for nullable_type_declaration_for_default_null_value after the default was changed in the latest Laravel Pint release: (v1.13.7).

@duncanmcclean duncanmcclean changed the title [4.x] Run Laravel Pint [4.x] Laravel Pint: Revert nullable_type_declaration_for_default_null_value to the old default Dec 5, 2023
@duncanmcclean duncanmcclean changed the title [4.x] Laravel Pint: Revert nullable_type_declaration_for_default_null_value to the old default [4.x] Laravel Pint: Revert change of nullable_type_declaration_for_default_null_value default Dec 5, 2023
@duncanmcclean duncanmcclean merged commit 26d08db into 4.x Dec 5, 2023
37 checks passed
@duncanmcclean duncanmcclean deleted the run-pint branch December 5, 2023 20:35
@jasonvarga jasonvarga changed the title [4.x] Laravel Pint: Revert change of nullable_type_declaration_for_default_null_value default [4.x] Laravel Pint: Revert nullable_type_declaration_for_default_null_value default Dec 5, 2023
@jasonvarga
Copy link
Member

For context, we reverted this rule because it could be a breaking change if someone overrides the class. If a parent method has a ? and the child doesn't, it would result in a method signature mismatch error.

@jasonvarga
Copy link
Member

I was wrong. It's not a breaking change. I was missing a = null in the code I was testing. 🤦 We can bring this back later.

duncanmcclean added a commit that referenced this pull request Dec 11, 2023
…fault_null_value`

We added this to the Pint config last week (#9126) but its no longer needed.
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.

2 participants