Is there a way of telling PHPStorm to behave with unnecessary uses as it does with regular ones?

When two PHP files are on the same namespace, adding a "use" to them for the other one is not necessary, but possible. However, PHPStorm inspection marks the unnecessary uses on PHP files as errors, warns about using them, and does not autocreate them when typing the class name on the file. The thing is, I like having them on the file even that they are not necessary. That makes me easier to check the file dependencies, and to search-replace the namespaces when I move classes around. I know about the refactoring features of PHPStorm, but they are not always available for me and my co-workers.

So, is there a way of telling PHPStorm to behave with unnecessary uses as it does with regular ones? Not marking them as errors, autocompleting, etc.

0

Please sign in to leave a comment.