I'm currently using the trial version of VS.PHP for Visual Studio 2010, specifically for working with the Magento shopping cart/cms. I really like what I've seen so far, and am very close to purchasing VS.PHP.
One thing I am having difficulty with is intellisense within a foreach loop. Here's my example:
* @var Mage_Review_Model_Mysql4_Review_Product_Collection
$allReviews = $this->getReviews($pageSize, $currentPage);
foreach($allReviews as $review )
/** @var Mage_Catalog_Model_Product */
The problem is that within the foreach loop, when using the $review variable, VS.PHP is giving me intellisense options for the Mage_Review_Model_Mysql4_Review_Product_Collection object. It *should* be giving me intellisense for the Mage_Catalog_Model_Product object.
Is this a bug, or am I doing this incorrectly?