如何停止此检查:“成员具有受保护的访问权限,但类具有魔术方法__get"? [英] How to stop this inspection: "Member has protected access, but class has magic method __get"?
本文介绍了如何停止此检查:“成员具有受保护的访问权限,但类具有魔术方法__get"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何停止此检查:
成员具有受保护的访问权限,但类具有魔术方法__get"?
"Member has protected access, but class has magic method __get"?
我到处搜索,但是找不到禁用此检查的选项.
I searched everywhere but can not find the option to disable this inspection.
我真的不希望属性为private
时仍然使用不同的颜色标记,并且类中有魔术方法__get
.
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.
推荐答案
@LazyOne提到的解决方案是:
@property string $File
在php文档中.
As @LazyOne mentioned the solution is:
@property string $File
in php doc.
这篇关于如何停止此检查:“成员具有受保护的访问权限,但类具有魔术方法__get"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文