开发者

Using PHPStorm against the Drupal code base produces many false errors

Has anyone managed to use PHPStorm with the Drupal code base? I keep getting many false errors about undefined variables. I've added *.module, *.inc, etc to the list of PHP file types but I still get errors开发者_开发技巧.


To get a rid most of the false errors, turn off the "Undefined field" and "Undefined method" (only in case of Drupal 7) inspections. You can locate them in Settings -> IDE Settings -> Inspections -> PHP.

Also, don't forget to add .module, .install, .inc, .test extensions as PHP files.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜