Been using Pint for awhile now and very happy with it! The ease of use is very nice.
One (minor) thing I noticed yesterday is the fact that the Laravel preset does not have a strong opinion on parentheses when instantiating new classes. I.e.:
new class; // this is fine
new class(); // also fine
I'm not sure what standards Laravel does or does not follow, but PSR-12 does make parentheses mandatory. Is it possible to include a more opinionated way of instantiating classes? I do not really care which of the two it will be, as long as it's consistent!
In case I'm missing some documentation that explains the decisions made in the Laravel preset, please let me know! I have not found that myself yet.
Note: I know I can add the rule myself, but we'd like to keep custom rules to a minimum. I thought this would be something that should be decided within the preset.
Ps. happy to open a PR myself if you're okay with it!
Been using Pint for awhile now and very happy with it! The ease of use is very nice.
One (minor) thing I noticed yesterday is the fact that the Laravel preset does not have a strong opinion on parentheses when instantiating new classes. I.e.:
I'm not sure what standards Laravel does or does not follow, but PSR-12 does make parentheses mandatory. Is it possible to include a more opinionated way of instantiating classes? I do not really care which of the two it will be, as long as it's consistent!
In case I'm missing some documentation that explains the decisions made in the Laravel preset, please let me know! I have not found that myself yet.
Ps. happy to open a PR myself if you're okay with it!