找回密码
 新建账号

PhpStorm Method or Field not found in a class

[复制链接]
php 发表于 2019/7/22 23:09 | 显示全部楼层 |阅读模式
In PhpStorm class methods and class properties may not be found when you open a file that does not belong to the current project.

Method '***' not found in ****
Inspection info: Referenced method is not found in subject class.

Field '***' not found in ****
Inspection info: Referenced field is not found in subject class.
Note: Check is not performed on objects of type "stdClass" or derived.

  • Go to File -> Settings -> Directories -> Add Content Root in PHPStorm
  • Add the path of the containing folder of the file that comes up with these error messages to the list
  • Hit the OK button.

手机版|轻松E站

GMT+8, 2024/11/21 17:00

快速回复 返回顶部 返回列表