Autocomplete Of Application Components

Hello,

I’ve noticed that problem of autocompleting application components in various IDE’s has been risen many times yet no solution has been applied. Components are properly documented in CWebApplication and CApplication, however Yii::app() is documented to return CApplication only. Simply changing:


/**

* Returns the application singleton or null if the singleton has not been created yet.

* @return CApplication the application singleton, null if the singleton has not been created yet.

*/



to


/**

* Returns the application singleton or null if the singleton has not been created yet.

* @return CApplication|CWebApplication|CConsoleApplication the application singleton, null if the singleton has not been created yet.

*/



seems to fix the problem.

That solution has been proposed here but for some reason it was not merged into codebase. I’m wondering why it wasn’t good enough and if there is any alternative solution planned.