Repository navigation
[1.x] Enables fully_qualified_strict_types rule - #425
Conversation
|
This PR seems to cause my classes to become very large (see https://github.com/laravel/pint/issues/426). I do understand why it would be helpful, but in classes that may contain many references (e.g. an array of available clases or priority/ordered), this results in an unreadable situation if the class names aren't well named. |
|
Really not liking this being in a minor version update. |
I understand, at the same time we want to keep improving things.. So, for people that prefer a more "stable" preset, that should just "pin" pint to a fixed version. |
|
It would be nice for any changes like this to include the configuration to override the changes in the PR. I believe for this PR the configuration is: {
"preset": "laravel",
"rules": {
"fully_qualified_strict_types": false
}
} |
This pull request enables the
fully_qualified_strict_typesrule on the Laravel Preset, effectively replacing fully qualified class names with regular imports. For example:Couple of things to keep in mind:
composer update laravel/pint.