NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Code completion for objects inside of an array


Joined: 05 Aug 2008
Posts: 7
Reply with quote
Can someone point me in the right direction. Since, to my knowledge, PHP doesn't support Lists as collections of objects, I am using an array to house many objects of the same type. When I iterate through the array, with each object, the autocomplete doesn't appear. Example below

function($examples){

foreach($examples as $example){
$example-> //no popup here to assist.
}
}

Even if I add a type hint before this function, it only works for the array ($examples), and still not the object ($example).


Last edited by cthorne66 on Thu Dec 11, 2008 12:03 am; edited 2 times in total
View user's profileFind all posts by cthorne66Send private message


Joined: 05 Aug 2008
Posts: 7
Reply with quote
Can this be an enhancement, or can some educate me on how to accomplish this?

Thank you for everything you do for us NuSphere team!
Chris
View user's profileFind all posts by cthorne66Send private message
Code completion for objects inside of an array
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic