0

I have a ExtJs class that is defined like :

Ext.define('Mb.lang.Lang', {
    alternateClassName: 'Lang',

As it can be expected, PHPstorm does not recognize the class name Lang in the code and shows everywhere the error

Unresolved variable or type Lang

Reading other questions, I think I could address this using PHPdoc blocks, but I don't really know how. Can you suggest a solution ?

1 Answer 1

3

The solution finally proved to be simple:
I had to use the @alias of JsDoc.

/**
 * @alias Lang
 */
Ext.define('Mb.lang.Lang', {
    alternateClassName: 'Lang',
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.