Is there any way to get rid of this annoying PhpStorm warning:
Member has private access, but class has magic method __get
Thank you!
Is there any way to get rid of this annoying PhpStorm warning:
Member has private access, but class has magic method __get
Thank you!
You can turn off warnings for magically accessing properties in the following way:
I am not entirely sure if this will also hide the warning in your case, for accessing private members. If not, you could also use the @property PHPDoc tag to describe which fields are accessible through your magic __get method.
Check this page for more information