简体   繁体   中英

phpStorm autocompletion for composer files directive

It seems that after upgrading to phpStorm8 the autocompletion for files that are required with the composer files directive is missing.
FE:

"autoload": {
    "psr-0": {
        "Stop": "src/"
    },
    "files": ["src/functions.php"]
}

This makes the composer autoloader require the files given in autoload_files.php file.

I used to get autocompletion for the functions in the required files, but not anymore.

Maybe its due to a change in the way composer loads the files or is it phpStorm?
How can i get the autocompletion working again?

This is a bug in phpStorm 8.0.1 and will be fixed in 8.0.2.

It has nothing to do with composer but with a if block with function_exists around the function.

As i asked here: https://youtrack.jetbrains.com/issue/WI-25798
and it was fixed here: https://youtrack.jetbrains.com/issue/WI-23442

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM