Separate Trait Imports
billriess opened this issue · comments
Is it possible to separate the imports for traits? I couldn't find an option for this in php-cs-fixer but it may exist. Ideally, it would handle it similar to regular imports, one per Use
statement.
We are not sure. You can search here: https://mlocati.github.io/php-cs-fixer-configurator/.
In case anyone is looking for the rule, you need to add this to your pint.json
configuration to achieve this:
{
"single_trait_insert_per_statement": true
}
Thanks! Shouldn't this be default for PINT as it's a PSR-12 standard?
@billriess the default for Laravel is the Laravel preset, not the PSR-12 one.
Yes but I thought the Laravel preset was mostly based on PSR.
…On Fri, Jul 29, 2022, 3:09 AM Dries Vints ***@***.***> wrote:
@billriess <https://github.com/billriess> the default for Laravel is the
Laravel preset, not the PSR-12 one.
—
Reply to this email directly, view it on GitHub
<#74 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA75DXUVT6XOZPPLVTKGDH3VWN7TJANCNFSM522RBO6Q>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>