PHP classes - greying out unused properties

Hi,

Just wondering if it is possible to grey out unused PHP class properties? Thanks.

0
1 comment

Hi there,

Unused private methods and properties -- they already will be marked as errors.

Protected and public -- no (only manual invocation of Show Usages for each field/method):

  1. A bit too expensive to run such stuff automatically (as it involves other files as well, not just current one as in private case)
  2. IDE has no idea if this is your final class and how you are planning to use it ... or is it a library that will be used elsewhere.

In any case: https://youtrack.jetbrains.com/issue/WI-28152

2

Please sign in to leave a comment.