How to stop this inspection:
"Member has protected access, but class has magic method __get"?
I searched everywhere but can not find the option to disable this inspection.
I really do not want the properties remain marked with a different color when they are private
and there is a magic method __get
in classes.
Wrong answer here. As @LazyOne mentioned the solution is:
@property string $File
in php doc.
To remove the mark should do the following:
- Settings (CTRL + Alt + S)
- Editor -> Colors & Fonts -> Copy the current Scheme
- Editor -> Colors & Fonts -> General -> Erros and Warnings -> Warning
- Mark off "Background" and "Error stripe mark" or do as you wish.
PhpStorm version 2016.1.2
来源:https://stackoverflow.com/questions/38004272/how-to-stop-this-inspection-member-has-protected-access-but-class-has-magic-m