private class property access check

I'm using phpStorm 10.0.3

How do i to add an inspection for phpstorm to check for private class property access from outside the class ? because i marked a property private and would like to refactor the direct property accessors to getters.



1 comment
Comment actions Permalink

Hi there,

I would do something like this:

  • Make it public again
  • Implement getter/setter
  • Use "Find Usages" action to show all places where it is used and replace by getter/setter method calls instead
  • Make field private again



Please sign in to leave a comment.