Add sniff to require use statements#342
Conversation
|
You might want to exclude certain parts here, the downside would be otherwise that any ... const/func would autofix to use statement: and we didn't decide yet to spam the use block with also constants, functions and CO :) |
|
It also blindly converts e.g. into a use statement, also killing the original docblock.. I opened up a ticket for now slevomat/coding-standard#1265 |
|
I didn't see that happen in any of the type changes I made, but there's no rush while your issue is resolved. |
|
Looks like the slevomat bug was patched. Is this ok now? |
|
Don't want things like |
I believe that can be disabled with |
@ADmad