Hi everyone, I am trying to leverage code completion in PHPStorm for classes declared as global. For example:
$result = $wpdb->insert( $table, $values, $format );
In PHPStorm, insert gets highlighted and the error "Method 'insert' not found in class" shows in the tooltip.
I know you can sometimes use PHPDoc tags to enable code completion in PHPStorm, like when using __get() and __set() magic methods with the @property tag. It would be nice to do something like:
* @class wpdb
to enable code completion for the $wpdb variable. Anyone know of such a thing in PHPStorm?
Thanks in advance.