Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to stop this inspection: "Member has protected access, but class has magic method __get"?

How to stop this inspection:

"Member has protected access, but class has magic method __get"?

enter image description here

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.

like image 288
Slowaways Avatar asked Jun 24 '16 01:06

Slowaways


People also ask

How do I disable a triggered inspection?

You can quickly disable a triggered inspection directly in the editor. Place the caret at the highlighted line and press Alt+Enter (or click to use the intention action). Click the arrow next to the inspection you want to disable, and select Disable inspection.

How do I disable an inspection in Visual Studio?

Click the arrow next to the inspection you want to disable, and select Disable inspection. In the Inspection Results tool window (after running code analysis), right-click the inspection you want to disable and select Disable inspection.

How do I disable an inspection after code analysis?

Click the arrow next to the inspection you want to disable, and select Disable inspection. In the Inspection Results tool window (after running code analysis), right-click the inspection you want to disable and select Disable inspection. Click to hide the disabled inspection alerts.

How to disable inspect elements from your website to secure it?

Sometimes you want to disable inspect elements from your website to secure it. There are many ways to inspect the code of the website or find the words in the code etc. For Example: by right-click, by pressing key F12, by ctrl+shift+i, by ctrl+f, etc. So to disable these keys or clicks, copy the below code and paste on your website page.


Video Answer


1 Answers

As @LazyOne mentioned the solution is: @property string $File in php doc.

like image 78
guybrush Avatar answered Sep 21 '22 21:09

guybrush