Kay Pale
Kay Pale

Reputation: 6569

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.

Upvotes: 2

Views: 1318

Answers (1)

tamasd
tamasd

Reputation: 5913

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.

Upvotes: 1

Related Questions