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.
精彩评论