Since Yii::app() is marked as returning CApplication instance I can not get the code hinting that I need when working on a web site and where Yii::app() actually is a CWebApplication
Any idea how I could get Yii:app() to be marked as returning a CWebApplication instance.
PHP is a weak-typed language. Even though the doc says the return value is CApplication, if it actually returns CWebApplication, you can use it just as CWebApplication. You don't need to typecast it.
You can use "instanceof" operator to check whether the return value is of certain class. You can also use get_class() to check the concrete class name of the instance.