If you use @var before a variable it will properly show the right type.
/** @var Mage_Customer_Model_Customer */
$customer = Mage::getModel("customer/customer")->load("1");
This will autocomplete the Mage_Core_Model_Abstract class that load returns and not the defined one in @var.
If you add the variable name does it work? /** @var Mage_Customer_Model_Customer $customer */
If you add the variable name does it work?
/** @var Mage_Customer_Model_Customer $customer */
I test it works.
Okey, so you have to use the explicit variable name and not the short had.
The tool-tip seems to display it correctly even with out the explicit name.
Closing, the shorthand syntax is only supported on property declarations.
Closing, the shorthand syntax is only supported on property declarations.
Sir, maybe this kind of Thing need to be written on the wiki, isn't it?
Most helpful comment
Closing, the shorthand syntax is only supported on property declarations.