Is there a way to hint WebIDE that a variable has some type?
I have to iterate an array of objects, and there's no auto-completion available.
This helps in ZendStudio:
/* @var ClassName $object */
I know there's a feature in JetBrains to declare an array of objects:
/**
* @return ClassName[]
*/
But this works only with function's return type.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…