intellisense for objects in foreach loop
Posted: September 20th, 2012, 5:41 pm
I have the commercial version of php tools for visual studio 2012 and have been using it for the last few weeks with much satisfaction.
One point of irritation, however, is that the intellisense doesn't work when I am using a foreach loop to loop through an array of objects.
Lets say I create a custom object called MyObject. Then in another object I create an array as a property. If I populate said array with a series of MyObjects, when I try to use a foreach loop to loop through the objects in that array, the intellisense treats each item I am looping through as an untyped variable. Therefore, intellisense doesn't work for the properties and functions of MyObject.
Are there any settings I can change to fix this? If not, is this a known issue that will be repaired in future versions?
One point of irritation, however, is that the intellisense doesn't work when I am using a foreach loop to loop through an array of objects.
Lets say I create a custom object called MyObject. Then in another object I create an array as a property. If I populate said array with a series of MyObjects, when I try to use a foreach loop to loop through the objects in that array, the intellisense treats each item I am looping through as an untyped variable. Therefore, intellisense doesn't work for the properties and functions of MyObject.
Are there any settings I can change to fix this? If not, is this a known issue that will be repaired in future versions?