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.
Editor > Colors & Fonts > PHP > Magic Member Access
. – Bezoar@property
tag for that class. This way you tell IDE that this is not an error and you know what you are doing (you are declaring that such internal field (field declared as private/protected) can be accessed from outside). As for actual inspection -- I do not see how it can be suppressed (as I cannot even tell what inspection it is) .. which could mean that this warning is actually provided at lower Parser/Lexer level (and such notices cannot be suppressed) – Electra